Commit 93d09f04 authored by Thomas Roos's avatar Thomas Roos Committed by Sebastian Dröge

dirctsoundsink: Setting volume should not unmute

https://bugzilla.gnome.org/show_bug.cgi?id=755106
parent e345a7fe
......@@ -915,7 +915,7 @@ gst_directsound_sink_set_volume (GstDirectSoundSink * dsoundsink,
* here, so remap.
*/
long dsVolume;
if (volume == 0)
if (volume == 0 || dsoundsink->mute)
dsVolume = -10000;
else
dsVolume = 100 * (long) (20 * log10 ((double) volume / 100.));
......@@ -923,7 +923,7 @@ gst_directsound_sink_set_volume (GstDirectSoundSink * dsoundsink,
GST_DEBUG_OBJECT (dsoundsink,
"Setting volume on secondary buffer to %d from %d", (int) dsVolume,
(int) dsoundsink->volume);
(int) volume);
IDirectSoundBuffer_SetVolume (dsoundsink->pDSBSecondary, dsVolume);
}
}
......
Markdown is supported
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