projects
/
neverball
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Neverputt: pause audio when in pause state
[neverball]
/
putt
/
st_all.c
diff --git
a/putt/st_all.c
b/putt/st_all.c
index
f0c0324
..
907102c
100644
(file)
--- a/
putt/st_all.c
+++ b/
putt/st_all.c
@@
-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;
}