On 25-06-08 09:24, Norbert van Bolhuis wrote:

> I would like to test an ALSA driver by capturing audio
> and immediately play the captured audio (loopback).
> 
> It's an embedded driver and the still to be developed audio app
> will interface to the driver via ALSA-LIB.
> therefore I would like to do this with the simplest and smallest
> possible ALSA-LIB program.
> 
> I tried making a program that continuously reads samples from capture
> stream and writes them to a playback stream (in a while loop),
> but it results in a capture underrun. Is it even possible this way
> (with one simple program/thread) ?
> 
> Is there an existing (ALSA-LIB) application that does this ?

If you'd buffer a bit I guess. Is "arecord -f <foo> | aplay" not minimal 
enough? Although it's not what you meant, arecord is a link to aplay, so 
it's still one program :-)

Rene.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to