[MPlayer-dev-eng] [PATCH] Changing volume for with aos that don't support it themselves

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Jun 19 15:10:37 CEST 2004


Hi,
this patch makes mixer.c use the volume filter (if loaded) to change 
volume if the ao doesn't support it. Actually it will use the last 
filter in the chain that supports CONTROL_VOLUME_LEVEL in that case.
Also it makes ao_sdl use this feature instead of SDL_MixAudio (which 
seems to be slow as hell). But the user will have to add -af volume to 
the command-line.
Do you think this is useful? There might be other aos that can profit 
from this. It would be even better if it could be extended to use the 
audio decoder's features... During MP3 decoding, volume can be chnaged 
without an extra penalty, I think.

Please, test and comment.

Greetings,
Reimar Döffinger
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mixer2.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040619/22c7d08c/attachment.asc>


More information about the MPlayer-dev-eng mailing list