summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/sound/sdl_sound.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/modules/sound/sdl_sound.c')
-rw-r--r--src/osd/modules/sound/sdl_sound.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/osd/modules/sound/sdl_sound.c b/src/osd/modules/sound/sdl_sound.c
index 0f92a1e779c..bbebb6e741a 100644
--- a/src/osd/modules/sound/sdl_sound.c
+++ b/src/osd/modules/sound/sdl_sound.c
@@ -355,6 +355,15 @@ void sound_sdl::set_mastervolume(int _attenuation)
_attenuation = -32;
attenuation = _attenuation;
+
+ if ((attenuation == -32) && (stream_in_initialized))
+ {
+ SDL_PauseAudio(1);
+ }
+ else if (stream_in_initialized)
+ {
+ SDL_PauseAudio(0);
+ }
}
//============================================================