From alsa-user-owner@alsa.jcu.cz  Sat Jan 16 04:01:01 1999
Received: from giasbm01.vsnl.net.in (giasbm01.vsnl.net.in [202.54.1.18])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id DAA03131
	for <alsa-user@alsa.jcu.cz>; Sat, 16 Jan 1999 03:59:26 +0100
Received: from pentium200 ([202.54.81.112])
	by giasbm01.vsnl.net.in (8.9.1/8.9.1) with SMTP id IAA28882
	for <alsa-user@alsa.jcu.cz>; Sat, 16 Jan 1999 08:26:01 +0530 (IST)
Message-ID: <000a01be0283$2ff96f40$705136ca@pentium200>
From: "Patanjali" <patanjali@mindless.com>
To: <alsa-user@alsa.jcu.cz>
Subject: Re: full duplex programming
Date: Wed, 28 Oct 1998 20:25:22 +0530
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Reply-To: alsa-user@alsa.jcu.cz
Sender: alsa-user-owner@alsa.jcu.cz
Precedence: list


-----Original Message-----
From: Jaroslav Kysela <perex@jcu.cz>
To: Patanjali <patanjali@mindless.com>
Cc: alsa-user@alsa.jcu.cz <alsa-user@alsa.jcu.cz>
Date: Saturday, January 16, 1999 2:42 AM
Subject: Re: full duplex programming


>On Wed, 28 Oct 1998, Patanjali wrote:
>
>> I would like to do a program
>> which reads, processes and writes
>> suond using the full duplex capabilities of
>> the SB 16 and my ALSA driver.
>>
>> how do i go about it ?
>> currently i am doing something like :
>> while(1)
>> {
>>     read some bytes into buffer;
>>     write same bytes into buffer; // write only number of bytes actually
read
>> }
>>
>> this code doesn't seem to be giving me the right results.
>> the sound input doesn't always appear at the output,
>> also the quality is very bad.
>>
>> is there any demo prog which does the above ?
>
>Yes, look to alsa-lib/test/latency.c... Your algorithm is bad (playback
>underruns)...
>
> Jaroslav
>


thanx a lot.
that atleast confirms that full duplex is possible.
however i don't have a latency.c
i have alsa lib 0.1.3 : should i upgrade ?
would reducing the fragment size help ?
if so, by how much ?
thanx again

- patanjali


>------
>To unsubscribe from <alsa-user@alsa.jcu.cz> mailing list send message
>'unsubscribe' in the body of message to <alsa-user-request@alsa.jcu.cz>.
>


