Skip to contentSkip to conversation

Concurrent access to sound device (speak freely and games)

DISCUSSION [email protected] 1 participant 2 messages Mar 22, 2002 – Mar 27, 2002

lore
Share & tools
lore
#0 lore raw

Hello folks.

The Windows users surrounding me are asking why I can't run "talkie" apps such as Speakfreely and Openh323 at the same time as Quake3, Wolfenstein, etc. "Windows can do it" is a pretty difficult argument to counter, and they bring it up whenever we're having one of those discussions about the relative merits of the two OSs. You know the ones.

RTCW blocks when opening "/dev/dsp". The FAQ is fairly belligerent about what to do, so I gave this a try:

    echo "wolf.x86 0 0 non-block" > /proc/asound/card0/pcm0p/oss

After that Wolf doesn't block on the open, but receives EBUSY and runs without sound.

SDL addressed this by mixing all connections. Is there a way to present OSS-emulated ALSA audio devices to applications so that they think they have exclusive access?

I sure hope so.

Signature · 7 lines
_________________________________________________________________________
Andrew Donkin                                      Hamilton,  New Zealand

_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel
#1 lore raw

Re: Concurrent access to sound device

Quoted 3 lines

Is there a way to present OSS-emulated ALSA audio devices to applications so that they think they have exclusive access?

I didn't receive an answer to this one, either because a) there isn't one or b) I'm being stupid.

Please let me know which it is and I'll take appropriate action. If both are true then I guess I'm in trouble.

Thanks in advance.

Signature · 2 lines
_________________________________________________________________________
Andrew Donkin                  Waikato University, Hamilton,  New Zealand