diff options
author | wm4 <wm4@mplayer2.org> | 2012-01-06 16:25:52 +0100 |
---|---|---|
committer | wm4 <wm4@mplayer2.org> | 2012-01-18 04:21:45 +0100 |
commit | 15a318b2a56766e7bc2dee5d4cc8f514ba21fe39 (patch) | |
tree | bccff54d0377c85bd48a873ab96d23c1f25c701e /libao2/ao_coreaudio.c | |
parent | 29effe9593465f9096227edb79e09e51ca8a054d (diff) | |
download | mpv-15a318b2a56766e7bc2dee5d4cc8f514ba21fe39.tar.bz2 mpv-15a318b2a56766e7bc2dee5d4cc8f514ba21fe39.tar.xz |
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.
Diffstat (limited to 'libao2/ao_coreaudio.c')
-rw-r--r-- | libao2/ao_coreaudio.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |