[MPlayer-users] Audio equalizer problem

Dominik 'Rathann' Mierzejewski dominik at rangers.eu.org
Sun Oct 12 01:03:08 CEST 2003


On Saturday, 11 October 2003, Darabos Edvárd Konrád wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Hi all!
[...]
> I hacked the libao2/ao_oss.c:135 (init
> function, ac3_retry label), addedd the following lines:
> 
> ac3_retry:
> ao_data.format=format; // <--- left unchanged
> if(format==AFMT_FLOAT) // <--- inserted these
> #ifdef WORDS_BIGENDIAN
>   ao_data.format=AFMT_S16_BE;
> #else
>   ao_data.format=AFMT_S16_LE;
> #endif
[...]
> I did a hack in the
> libaf/af_format.c:470 (float2int function / switch(bps) / case 2 / inside
> for):
> 
> Original line:
> ((int16_t*)out)[i]=(int16_t)lrintf(SHRT_MAX*((float*)in)[i]);
> Modified line:
> ((int16_t*)out)[i]=(int16_t)lrintf(32*SHRT_MAX*((float*)in)[i]);

Now read patches.txt and send a patch along with that information
to mplayer-dev-eng. Even if it's not correct, it should get more attention
from the developers.

-- 
MPlayer RPMs maintainer: http://www.piorunek.pl/~dominik/linux/pkgs/mplayer/
"The Universe doesn't give you any points for doing things that are easy."
        -- Sheridan to Garibaldi in Babylon 5:"The Geometry of Shadows"



More information about the MPlayer-users mailing list