|
Prev: Sound Advice
Next: cannot mount cdrom/dvd drive
From: ankur.kumar on 4 Jan 2006 18:10 I'm using ALSA and the only issue is if an application is using Sound device (/dev/dsp) and another application is trying to use it, it says "/dev/dsp" is already in use. What can I do it share the sound device?? Alliance Bernstein: Winner of Money Management "FUND MANAGER OF THE YEAR 2005" Member of the Global AXA Group ********************************************************************************* Important Note This email (including any attachments) contains information which is confidential and may be subject to legal privilege. If you are not the intended recipient you must not use, distribute or copy this email. If you have received this email in error please notify the sender immediately and delete this email. Any views expressed in this email are not necessarily the views of AXA. Thank you. **********************************************************************************
From: =?utf-8?Q?Bj=C3=B6rn_Lindstr=C3=B6m?= on 4 Jan 2006 18:40 ankur.kumar(a)axa.com.au writes: > I'm using ALSA and the only issue is if an application is using Sound > device (/dev/dsp) and another application is trying to use it, it says > "/dev/dsp" is already in use. > > What can I do it share the sound device?? Presumably your sound card has only one channel. To play sounds from more than one program together, you must use another program to mix them together. Two such programs are esd and arts. To use those, the programs playing the sounds will have to support output to esd or arts respectively. -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Linas Zvirblis on 4 Jan 2006 18:50 > Presumably your sound card has only one channel. To play sounds from > more than one program together, you must use another program to mix them > together. Two such programs are esd and arts. To use those, the programs > playing the sounds will have to support output to esd or arts > respectively. But ALSA should do the mixing on its own. If we are talking about an older version of ALSA, perhaps an upgrade is the solution. -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: Andrew Sackville-West on 4 Jan 2006 22:40 On Thu, 5 Jan 2006 10:08:02 +1100 ankur.kumar(a)axa.com.au wrote: > I'm using ALSA and the only issue is if an application is using Sound > device (/dev/dsp) and another > application is trying to use it, it says "/dev/dsp" is already in use. > > What can I do it share the sound device?? this is a problem I've struggled with for a long while. Basically, you can set up alsa to share the sound device by doing its own software mixing. If you google alsa and dmix you might get something, but I find it all really confusing. I basically copied someone else's post to put in my ~/.asoundrc file. I really don't know what this does, but it seems to work. ymmv. pcm.!default { type plug slave.pcm "dmixer" } pcm.dsp0 { type plug slave.pcm "dmixer" } pcm.dmixer { type dmix ipc_key 1024 slave { pcm "hw:0,0" period_time 0 period_size 1024 buffer_size 8192 #periods 128 rate 44100 } bindings { 0 0 1 1 } } ctl.mixer0 { type hw card 0 } -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
From: David Berg on 4 Jan 2006 23:20
On 1/4/06, Andrew Sackville-West <andrew(a)farwestbilliards.com> wrote: > On Thu, 5 Jan 2006 10:08:02 +1100 > ankur.kumar(a)axa.com.au wrote: > > > I'm using ALSA and the only issue is if an application is using Sound > > device (/dev/dsp) and another > > application is trying to use it, it says "/dev/dsp" is already in use. > > > > What can I do it share the sound device?? > > this is a problem I've struggled with for a long while. Basically, you can set up alsa to share the sound device by doing its own software mixing. If you google I've been pondering a similar problem of sharing the device in a multi user setting (home computer). I often start a playlist in xmms then go about some housework. The screen locks, then my wife or kid want to start a movie or change the playlist and I have to unlock it (or if I'm not around they wait). I'd like to hear if anyone has come up with a good way to control access to /dev/dsp. The best I've been able to come up with is to run xmms or similar as a unique user and have a "remote" available to change playback. Kind of a hack, but I can't think of anyway to allow a user in the audio group to have their feed replace or mix with another user's. Any suggestions? Dave |