Re: [linux-audio-user] sharing /dev/dsp between apps

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-user] sharing /dev/dsp between apps
From: Paul Winkler (pw_lists_AT_slinkp.com)
Date: Thu Jan 31 2002 - 02:24:43 EET


On Fri, Jan 25, 2002 at 12:48:33PM +0000, matthew yee-king wrote:
> Hello list people
>
> I am currently using bog standard OSS and gnome. when i run two audio
> apps that talk to /dev/dsp they clash, i.e. the second app that launches
> doesn't get any audio. if i install the alsa drivers+ oss emulation,
> will this still be the case, i.e. can two apps talk to an alsa emulated
> /dev/dsp device at the same time?
>
> one app is xmms the other is the jsyn audio synthesis api for java. xmms
> can run alsa native can't it? in that case will /dev/dsp be available
> simultaneously? (jsyn is oss only)
>
> i ask cos i'm developing a java audio app and i don't want to stop my
> mp3 player every time i need to test the audio app!

AFAIK, alsa alone doesn't do this. You need some kind of "soft mixer"
- a sound daemon such as esd or artsd.

I suggest also that you look at jackit.sf.net. It's still an emerging
API, but if you take the callback approach suggested, you can probably
save yourself some work of dealing with the audio driver, and make
your app able to plug directly into other audio apps to boot. At
least that's the idea.

-- 

paul winkler home: http://www.slinkp.com music: http://www.reacharms.com calendars: http://www.calendargalaxy.com


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu Jan 31 2002 - 02:12:48 EET