[linux-audio-user] stupid, basic alsa question

Tapio Kelloniemi persistent.spam at thack.org
Wed Mar 16 13:34:07 EST 2005

On Wed, Mar 16, 2005 at 07:02:26PM +0100, Atte André Jensen wrote:
 > Hi
 > Is it possible to have two (or more) applications write to the same 
 > soundcard at the same time with alsa?

Yes, using the dmix plugin provided by the alsa library. Use something like:
# aplay -D dmix:SLAVE=\"hw:0,0\",RATE=44100 x.wav
to play x.wav using aplay and the dmix plugin. You should be able
to start multiple aplays at the same time.

I don't know how good quality this produces, most people use JACK
(http://jackit.sf.net/) instead.


More information about the Linux-audio-user mailing list