[ilugd] Multiple sound applications run simultaneously?
Hullo! Whats the deal with running 2 applications using /dev/dsp together? Lets say i want to run xmms and play quake3a, I can't - Q3 just won't start. Killing off xmms immediately starts it. Also, what if i'm using xmms, and suddenly need to see a video in mplayer - mplayer gives me an error saying that it couldn't open /dev/dsp. Is it because xmms locks the file, or changes its access permissions? or is it just some setting somewhere which needs to be changed? Cheers! Vik = -- Viksit Gaur me[at]viksit[dot]com viksit[at]linux-delhi[dot]org http://viksit.com 'Not all who wander are lost.' - J.R.R. Tolkien, The Fellowship of the Ring __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Multiple sound applications run simultaneously?
The /dev/dsp is a channel handled by sound driver. In most cases, only one process can lock on to the channel because sound card/sound driver are only capable of handling one channel at a time. There are exception to this, like Creative Live! card/driver can handle upto 32 channels, mixing the appropriately before rendering them on your speaker. OTH, one can run daemon like esd or arts to do the mixing in software and produce the output. In this case, esd capable application just posts the sound data to esd(agent) which is locking the /dev/dsp HTH Supreet Viksit Gaur wrote: Hullo! Whats the deal with running 2 applications using /dev/dsp together? Lets say i want to run xmms and play quake3a, I can't - Q3 just won't start. Killing off xmms immediately starts it. Also, what if i'm using xmms, and suddenly need to see a video in mplayer - mplayer gives me an error saying that it couldn't open /dev/dsp. Is it because xmms locks the file, or changes its access permissions? or is it just some setting somewhere which needs to be changed? Cheers! Vik = -- Viksit Gaur me[at]viksit[dot]com viksit[at]linux-delhi[dot]org http://viksit.com 'Not all who wander are lost.' - J.R.R. Tolkien, The Fellowship of the Ring __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/ ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/
Re: [ilugd] Multiple sound applications run simultaneously?
On Fri, 2004-12-24 at 07:02 -0800, Viksit Gaur wrote: Hullo! Whats the deal with running 2 applications using /dev/dsp together? Lets say i want to run xmms and play quake3a, I can't - Q3 just won't start. Killing off xmms immediately starts it. Also, what if i'm using xmms, and suddenly need to see a video in mplayer - mplayer gives me an error saying that it couldn't open /dev/dsp. Is it because xmms locks the file, or changes its access permissions? or is it just some setting somewhere which needs to be changed? Use ALSA with xmms(ALSA output plugin). quake AFAIK uses the old OSS interface. The OSS interface allows only one application to use the sound system by using locking. - Sandip -- Sandip Bhattacharya*Puroga Technologies * [EMAIL PROTECTED] Work: http://www.puroga.com* Home: http://www.sandipb.net PGP/GPG Signature: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3 Diplomacy is the art of saying nice doggy until you can find a rock. ___ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/