projects
/
neverball
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e6075b
)
Neverputt: pause audio when in pause state
author
Alberto Mardegan
<mardy@users.sourceforge.net>
Sat, 20 Aug 2011 13:39:53 +0000
(16:39 +0300)
committer
Alberto Mardegan
<mardy@users.sourceforge.net>
Sat, 20 Aug 2011 13:39:53 +0000
(16:39 +0300)
putt/st_all.c
patch
|
blob
|
history
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;
}