[MPlayer-dev-eng] [PATCH] making coreaudio ao remember the volume in a playlist

Stefano Pigozzi slicer1337 at gmail.com
Sun Dec 20 20:22:28 CET 2009


This patch makes the coreaudio audio output remember the volume when
changing audio unit. This is particularly handy when playing a playlist, or
using ordered chapters unofficial patches: without the patch the coreaudio
ao will change the volume to 1/4 of the maximum (thats the coreaudio ao
default) each time a new file in the playlist starts.

The volume is saved in a static variable before the audio unit
uninitialization and restored just after the initialization of a new one.

This is my first patch on mplayer so, please, bear with me if did not
respect some conventions, just let me know and I will fix the problems.
Moreover, I'm not really sure if this solution is really the most elegant
(probably not).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coreaudio_remember_volume_on_audio_unit_change.diff
Type: application/octet-stream
Size: 1568 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20091220/b6a0f293/attachment.obj>


More information about the MPlayer-dev-eng mailing list