From owner-freebsd-questions@FreeBSD.ORG Thu May 5 19:37:33 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD1C916A4CE for ; Thu, 5 May 2005 19:37:33 +0000 (GMT) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1487043D76 for ; Thu, 5 May 2005 19:37:33 +0000 (GMT) (envelope-from maarfree@xs4all.nl) Received: from maartens.sandersatkins.nl (a80-127-55-226.adsl.xs4all.nl [80.127.55.226]) by smtp-vbr7.xs4all.nl (8.12.11/8.12.11) with ESMTP id j45JbQt8076210 for ; Thu, 5 May 2005 21:37:26 +0200 (CEST) (envelope-from maarfree@xs4all.nl) From: maarfree To: freebsd-questions@freebsd.org Content-Type: text/plain Date: Thu, 05 May 2005 21:37:26 +0200 Message-Id: <1115321846.714.12.camel@maarten.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner Subject: mplayer, oss and /dev/dspX X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 19:37:33 -0000 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@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