[MPlayer-users] MPlayer 0.90 + alsa + multichannel output

Vladimir I. Umnov samba at ezmail.ru
Wed Jun 4 18:35:40 CEST 2003


I solve the problem!!!
It's enough to add the following string in "play_normal" after
variables declaration:
len=num_frames*bytes_per_sample;

I do not make patches before, and may be it's not a patch,
I generate it with "diff -t <old> <new>"

If len contain to bpspc(bytes per sample per channel) all should works
fine, but if not - channels swaps. If offset is even, then channels
swaps, if odd then sound shared between 2 channels :) It's amazing.
Demonstration of this is commented in the patch.

In addition, now while seeking there is no clicks.

p.s. sorry for bad English.
p.p.s. mmap mode not work with not 2 channels?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ao_alsa9.diff
Type: application/octet-stream
Size: 3666 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20030604/8496c528/attachment.obj>


More information about the MPlayer-users mailing list