Re: full duplex programming

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: full duplex programming
From: Jaroslav Kysela (perex_AT_jcu.cz)
Date: pe tammi  15 1999 - 15:25:20 EST


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_AT_jcu.cz>
Academic Computer Centre, University of South Bohemia
Branisovska 31, C. Budejovice, CZ-370 05 Czech Republic

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


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : ma maalis 13 2000 - 11:59:35 EST