Commit 6c2d1fde authored by Thomas Guillem's avatar Thomas Guillem
Browse files

mmdevice: reset gain when the volume is changed from outside

parent 3d491ebe
......@@ -280,6 +280,10 @@ vlc_AudioSessionEvents_OnSimpleVolumeChanged(IAudioSessionEvents *this,
msg_Dbg(aout, "simple volume changed: %f, muting %sabled", vol,
mute ? "en" : "dis");
/* If the user ask to lower the volume, there is no need to amplify
* anymore. */
if (vol < 1.0f)
sys->gain = 1.0f;
WakeConditionVariable(&sys->work); /* implicit state: vol & mute */
(void) ctx;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment