summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-17 19:36:12 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-09-17 19:36:12 +0200
commit761aae931b03099118720a01f0ec41b09ccc8acc (patch)
tree1703c14e70e284db5ba7ae38e42646b1f261a19b /main.c
parent8df9da39d2252ee3aa6f5b2b880074a362298501 (diff)
resume playback after suspend
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index 7c817fa4..93882f9e 100644
--- a/main.c
+++ b/main.c
@@ -329,6 +329,11 @@ player_thread (uintptr_t ctx) {
uint32_t p2;
while (messagepump_pop(&msg, &ctx, &p1, &p2) != -1) {
switch (msg) {
+ case M_REINIT_SOUND:
+ palsa_free ();
+ palsa_init ();
+ palsa_play ();
+ break;
case M_TERMINATE:
GDK_THREADS_ENTER();
gtk_widget_hide (mainwin);