RE : [Alsa-user] Multiple sounds playback
Brought to you by:
perex
From: <ds...@cl...> - 2003-07-10 16:25:14
|
Does it mean I have to open "plughw:0,0,0", "plughw:0,0,1"...or "plug:dmix" ? I did not find any doc about device name with snd_pcm_open, and aplay -l does not list anything like plughw, etc... If I open "plughw:0,0,0", "plughw:0,0,1" for my via 686b, will it continue to work on other soundcard in the same way (with multiple stream with different format) ? Thanks, David > -----Original Message----- > From: ae...@st...=20 > [mailto:ae...@st...] On Behalf Of Clemens Ladisch > Sent: Thursday, July 10, 2003 5:57 PM > To: David Scr=E8ve > Cc: als...@li... > Subject: Re: [Alsa-user] Multiple sounds playback >=20 >=20 > David Scr=E8ve wrote: > > I've successfully been able to play one sound using the > > snd_pcm_open("plughw:0,0"...) and snd_pcm_writei, but if I want to=20 > > play another sound, snd_pcm_open hangs and I'm unable to=20 > paly another=20 > > sound. I though Alsa was responsible for mixing and=20 > hardware channel=20 > > allocation ? >=20 > Only if you use the right plugin for this. Try "plug:dmix"=20 > instead of "plughw:0,0". >=20 > > I have a via_82xx Alsa driver, but it does not seems to handle=20 > > severals pcm playback at the same time : I cannot open device with=20 > > name "plughw:1,0","plughw:0,1",etc... >=20 > See "aplay -l" for a list of PCM devices. The additional=20 > streams on VIAxxx are subdevices of the first device IIRC, so=20 > their name would be "plughw:0,0,0", "plughw:0,0,1" etc. >=20 >=20 > HTH > Clemens >=20 >=20 >=20 |