mplayer, oss and /dev/dspX
maarfree
maarfree at xs4all.nl
Thu May 5 12:37:33 PDT 2005
Hi,
I am using OSS. When I start "mplayer -ao oss -channels 6" I get nice
surround sound. I have also installed OSS Virtual Mixers. Strange enough
I do not manage to get mplayer to use other dsp devices e.g. "% gmplayer
-ao oss:/dev/dsp5 -channels 6" and xmms at /dev/dsp7 give a conflict
when using simultanously:
%xmms
** WARNING **: oss_open(): Failed to open audio device (/dev/dsp7):
Device busy.
#cat /dev/sndstat shows:
OSS/FreeBSD 3.99.2c (C) 4Front Technologies 1996-2004
License serial number: E00000008
**** UNREGISTERED VERSION ****
Drivers: ALL
License will expire after: 06/2005
*** Unregistered version ***
Build: 200504131459
Kernel: FreeBSD 5.3-RELEASE #7: Mon May 2 22:31:25 CEST 2005
maarten at maarten.lan:/usr/obj/usr/src/sys/MAARTEN
Card config:
VIA 8233 AC97 audio controller at 0xb000 irq 22
OSS Virtual Mixer Pro
Audio devices:
0: VT8237 (DUPLEX,GRC3)
1: VT8237 (shadow) (DUPLEX,GRC3)
2: OSS Virtual Mixer v2.5 Playback CH #0 (GRC3)
3: OSS Virtual Mixer v2.5 Playback CH #1 (GRC3)
4: OSS Virtual Mixer v2.5 Playback CH #2 (GRC3)
5: OSS Virtual Mixer v2.5 Playback CH #3 (GRC3)
6: OSS Virtual Mixer v2.5 Playback CH #4 (GRC3)
7: OSS Virtual Mixer v2.5 Playback CH #5 (GRC3)
8: OSS Virtual Mixer v2.5 Playback CH #6 (GRC3)
9: OSS Virtual Mixer v2.5 Playback CH #7 (GRC3)
Synth devices:
0: OSS Virtual Synth v2.5
Midi devices:
Mixers:
0: VT8237 (ALC655)
1: Virtual Mixer
History:
dsp0: pid 915 cmd 'firefox-bin' IN OUT
dsp0: pid 915 cmd 'firefox-bin' IN OUT
dsp0: pid 915 cmd 'firefox-bin' IN OUT
dsp0: pid 915 cmd 'firefox-bin' IN OUT
dsp0: pid 1021 cmd 'mplayer' OUT
and when I run xmms alone at /dev/dsp7 the history shows:
dsp0: pid 915 cmd 'firefox-bin' IN OUT
dsp0: pid 1021 cmd 'mplayer' OUT
dsp7: pid 1028 cmd 'xmms' OUT
I can also use the device simultanously (so I hear two sound at the same
time, e.g. xmms and ossplay):
dsp4: pid 1054 cmd 'ossplay' OUT
dsp7: pid 1047 cmd 'xmms' OUT
dsp4: pid 1054 cmd 'ossplay' OUT
So I know I the mixers work but how I can force mplayer to use /dev/dspX
instead of /dev/dsp that blocks the mixers?
Maarten
More information about the freebsd-questions
mailing list