Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Thomas Guillem
vlc-legacy
Commits
6c2d1fde
Commit
6c2d1fde
authored
Oct 03, 2016
by
Thomas Guillem
Browse files
mmdevice: reset gain when the volume is changed from outside
parent
3d491ebe
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/audio_output/mmdevice.c
View file @
6c2d1fde
...
...
@@ -280,6 +280,10 @@ vlc_AudioSessionEvents_OnSimpleVolumeChanged(IAudioSessionEvents *this,
msg_Dbg
(
aout
,
"simple volume changed: %f, muting %sabled"
,
vol
,
mute
?
"en"
:
"dis"
);
EnterCriticalSection
(
&
sys
->
lock
);
/* If the user ask to lower the volume, there is no need to amplify
* anymore. */
if
(
vol
<
1
.
0
f
)
sys
->
gain
=
1
.
0
f
;
WakeConditionVariable
(
&
sys
->
work
);
/* implicit state: vol & mute */
LeaveCriticalSection
(
&
sys
->
lock
);
(
void
)
ctx
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment