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

Stefano Pigozzi slicer1337 at gmail.com
Mon Dec 21 09:20:42 CET 2009


Well, I think it is a really useful feature (so I will try to get this
integrated in one way or another). I asked Uoti some days ago on IRC and he
told me that some AOs save the volume correctly, thats why I looked into
coreaudio to implement this.

Since I don't know a lot about mplayer's architecture, could you suggest me
where the AOs are initialized? I guess that would be an appropriate place to
add the feature.

By using -volume 100 it would still set the volume 100 at the start of eah
file without remembering what the user might have chosen during the
playlist.

On Mon, Dec 21, 2009 at 7:32 AM, Reimar Döffinger
<Reimar.Doeffinger at gmx.de>wrote:

> On Sun, Dec 20, 2009 at 08:22:28PM +0100, Stefano Pigozzi wrote:
> > 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 e the
> volume in the playlcoreaudio
> > 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.
>
> If this is wanted I really think it should be done on the higher level
> so it works for all AOs.
> However, your specific issue should be fixed by just adding -volume 100
> as first option on the command-line.
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
>



More information about the MPlayer-dev-eng mailing list