From 15a318b2a56766e7bc2dee5d4cc8f514ba21fe39 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 6 Jan 2012 16:25:52 +0100 Subject: ao_coreaudio: signal that volume controls are not persistent This will make the mplayer frontend restore the volume on its own when the audio device is reinitialized. --- libao2/ao_coreaudio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libao2/ao_coreaudio.c b/libao2/ao_coreaudio.c index 34374f4c9c..50e943e9ac 100644 --- a/libao2/ao_coreaudio.c +++ b/libao2/ao_coreaudio.c @@ -450,6 +450,8 @@ int device_id, display_help = 0; ao->b_revert = 0; ao->b_changed_mixing = 0; + global_ao->no_persistent_volume = true; + if (device_id == 0) { /* Find the ID of the default Device. */ err = GetAudioProperty(kAudioObjectSystemObject, -- cgit v1.2.3