From alsa-user-owner@alsa.jcu.cz  Sat Jan 16 04:29:42 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 EAA05070
	for <alsa-user@alsa.jcu.cz>; Sat, 16 Jan 1999 04:26:42 +0100
Received: from pentium200 ([202.54.80.103])
	by giasbm01.vsnl.net.in (8.9.1/8.9.1) with SMTP id IAA13789
	for <alsa-user@alsa.jcu.cz>; Sat, 16 Jan 1999 08:53:20 +0530 (IST)
Message-ID: <000001be0287$0112c380$675036ca@pentium200>
From: "Patanjali" <patanjali@mindless.com>
To: <alsa-user@alsa.jcu.cz>
Subject: Re: full duplex programming
Date: Wed, 28 Oct 1998 20:52:46 +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

i don't have latency.c in my distribution, can u send it over ?
-----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
>
>-----
>Jaroslav Kysela <perex@jcu.cz>
>Academic Computer Centre, University of South Bohemia
>Branisovska 31, C. Budejovice, CZ-370 05 Czech Republic
>
>------
>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>.
>


