[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#598431: sound not working with stock mplayer.conf on GNU/kFreeBSD



Package: mplayer
Version: 2:1.0~rc3++final.dfsg1-1
Severity: normal
Tags: patch
User: debian-bsd@lists.debian.org
Usertags: kfreebsd

mplayer.conf defaults to:

# Use pulse, then alsa, then SDL video with the aalib subdriver by default.
ao=pulse,alsa,sdl:aalib

but "alsa" backend is Linux-only.  On GNU/kFreeBSD is should use "oss" instead.

Patch attached.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mplayer depends on:
ii  libaa1                  1.4p5-38         ascii art library
ii  libaudio2               1.9.2-3          Network Audio System - shared libr
ii  libavcodec52            4:0.5.2-4        ffmpeg codec library
ii  libavformat52           4:0.5.2-4        ffmpeg file format library
ii  libavutil49             4:0.5.2-4        ffmpeg utility library
ii  libc0.1                 2.11.2-6         Embedded GNU C Library: Shared lib
ii  libcaca0                0.99.beta17-1    colour ASCII art library
ii  libcdparanoia0          3.10.2+debian-9  audio extraction tool for sampling
ii  libdirectfb-1.2-9       1.2.10.0-4       direct frame buffer graphics - sha
ii  libdvdread4             4.1.3-10         library for reading DVDs
ii  libenca0                1.13-3           Extremely Naive Charset Analyser -
ii  libesd0                 0.2.41-7         Enlightened Sound Daemon - Shared 
ii  libfontconfig1          2.8.0-2.1        generic font configuration library
ii  libfreetype6            2.4.2-1          FreeType 2 font engine, shared lib
ii  libfribidi0             0.19.2-1         Free Implementation of the Unicode
ii  libgcc1                 1:4.4.4-8        GCC support library
ii  libgif4                 4.1.6-9          library for GIF images (library)
ii  libgl1-mesa-glx [libgl1 7.7.1-4          A free implementation of the OpenG
ii  libjack-jackd2-0 [libja 1.9.5~dfsg-19    JACK Audio Connection Kit (librari
ii  libjpeg62               6b1-1            The Independent JPEG Group's JPEG 
ii  liblircclient0          0.8.3-5          infra-red remote control support -
ii  liblzo2-2               2.03-2           data compression library
ii  libncurses5             5.7+20100313-3   shared libraries for terminal hand
ii  libogg0                 1.2.0~dfsg-1     Ogg bitstream library
ii  libopenal1              1:1.12.854-2     Software implementation of the Ope
ii  libpng12-0              1.2.44-1         PNG library - runtime
ii  libpostproc51           4:0.5.2-4        ffmpeg video postprocessing librar
ii  libpulse0               0.9.21-3         PulseAudio client libraries
ii  libsdl1.2debian         1.2.14-6         Simple DirectMedia Layer
ii  libsmbclient            2:3.5.5~dfsg-1   shared library for communication w
ii  libspeex1               1.2~rc1-1        The Speex codec runtime library
ii  libstdc++6              4.4.4-8          The GNU Standard C++ Library v3
ii  libswscale0             4:0.5.2-4        ffmpeg video scaling library
ii  libtheora0              1.1.1+dfsg.1-3   The Theora Video Compression Codec
ii  libx11-6                2:1.3.3-3        X11 client-side library
ii  libxext6                2:1.1.2-1        X11 miscellaneous extension librar
ii  libxinerama1            2:1.1-3          X11 Xinerama extension library
ii  libxt6                  1:1.0.7-1        X11 toolkit intrinsics library
ii  libxv1                  2:1.0.5-1        X11 Video extension library
ii  libxvmc1                2:1.0.5-1        X11 Video extension library
ii  libxxf86dga1            2:1.1.1-2        X11 Direct Graphics Access extensi
ii  libxxf86vm1             1:1.1.0-2        X11 XFree86 video mode extension l
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

mplayer recommends no packages.

Versions of packages mplayer suggests:
ii  bzip2                         1.0.5-6    high-quality block-sorting file co
ii  fontconfig                    2.8.0-2.1  generic font configuration library
pn  mplayer-doc                   <none>     (no description available)
pn  netselect | fping             <none>     (no description available)
ii  ttf-freefont                  20090104-7 Freefont Serif, Sans and Mono True

-- Configuration Files:
/etc/mplayer/mplayer.conf changed [not included]

-- no debconf information
diff -ur mplayer-1.0~rc3++final.dfsg1.old/debian/mplayer.conf mplayer-1.0~rc3++final.dfsg1/debian/mplayer.conf
--- mplayer-1.0~rc3++final.dfsg1.old/debian/mplayer.conf	2010-08-01 16:58:36.000000000 +0200
+++ mplayer-1.0~rc3++final.dfsg1/debian/mplayer.conf	2010-09-28 23:33:51.278290951 +0200
@@ -67,8 +67,8 @@
 # audio settings #
 ##################
 
-# Use pulse, then alsa, then SDL video with the aalib subdriver by default.
-ao=pulse,alsa,sdl:aalib
+# Use pulse, then @SOUND_BACKEND@, then SDL video with the aalib subdriver by default.
+ao=pulse,@SOUND_BACKEND@,sdl:aalib
 
 # Use SDL audio driver with the esd subdriver by default.
 #ao = sdl:esd
diff -ur mplayer-1.0~rc3++final.dfsg1.old/debian/rules mplayer-1.0~rc3++final.dfsg1/debian/rules
--- mplayer-1.0~rc3++final.dfsg1.old/debian/rules	2010-08-01 16:58:36.000000000 +0200
+++ mplayer-1.0~rc3++final.dfsg1/debian/rules	2010-09-28 23:33:30.238160711 +0200
@@ -88,6 +88,9 @@
 
 ifeq (linux,$(DEB_HOST_ARCH_OS))
     CONFIGURE_FLAGS += --enable-mga --enable-3dfx --enable-tdfxfb
+    sound_backend := alsa
+else
+    sound_backend := oss
 endif
 
 # See http://wiki.debian.org/Teams/Dpkg/DebianRules; #465282  and
@@ -118,6 +121,8 @@
 	$(MAKE) install-mencoder-man DESTDIR=$(CURDIR)/debian/mplayer
 	install -D -m 644 debian/mplayer.conf \
 	                  $(CURDIR)/debian/mplayer/etc/mplayer/mplayer.conf
+	sed -e "s/@SOUND_BACKEND@/$(sound_backend)/" -i \
+	                  $(CURDIR)/debian/mplayer/etc/mplayer/mplayer.conf
 
 # build gui version
 debian/mplayer-gui/usr/bin/gmplayer:

Reply to: