Neverputt: pause audio when in pause state
[neverball] / putt / st_all.c
index f0c0324..907102c 100644 (file)
@@ -582,6 +582,7 @@ int goto_pause(struct state *s, int e)
 
 static int pause_action(int i)
 {
+    SDL_PauseAudio(0);
     audio_play(AUD_MENU, 1.0f);
 
     switch(i)
@@ -616,6 +617,7 @@ static int pause_enter(struct state *st, struct state *prev)
         gui_layout(id, 0, 0);
     }
 
+    SDL_PauseAudio(1);
     hud_init();
     return id;
 }