[MPlayer-dev-eng] [PATCH] fix for ao_alsa9 and surround

Tom Lees tal26 at cam.ac.uk
Sun Dec 1 18:34:03 CET 2002


OK, I think I found why the alsa9 driver was breaking surround sound.
ALSA returns the buffer size in _frames_, not bytes, so multiplying by
bytes_per_sample is needed.

-ao alsa9:surround51 -channels 6 and -ao alsa9:surround40 -channels 4
work fine with this now on my Audigy, EXCEPT that (at least in 5.1 mode)
whenever you seek in the file, the channel mappings seem to get messed
up (eg center in left speaker etc). I'm not sure whether this is an ALSA
bug or some other weirdness going on.

Tom

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-alsa9-fix.diff
Type: text/x-patch
Size: 517 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021201/167cbe29/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021201/167cbe29/attachment.pgp>


More information about the MPlayer-dev-eng mailing list