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

Damion de Soto damion at snapgear.com
Fri Jun 6 00:10:49 CEST 2003


Thanks Vladirmir,

I can confirm this works and solved the problem for me too.


Vladimir I. Umnov wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> 
> 
> ------------------------------------------------------------------------
> 
> 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?
> 
> 
> ------------------------------------------------------------------------
> 



-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer  email:     damion at snapgear.com
SnapGear ---                           ph:         +61 7 3435 2809
  | Custom Embedded Solutions          fax:         +61 7 3891 3630
  | and Security Appliances            web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the MPlayer-users mailing list