summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/main.c b/main.c
index 1d512df9..20bc07c2 100644
--- a/main.c
+++ b/main.c
@@ -234,16 +234,7 @@ player_thread (uintptr_t ctx) {
while (messagepump_pop(&msg, &ctx, &p1, &p2) != -1) {
switch (msg) {
case M_REINIT_SOUND:
- {
- int state = p_get_state ();
-
- p_free ();
- p_init ();
-
- if (state != OUTPUT_STATE_PAUSED && state != OUTPUT_STATE_STOPPED) {
- p_play ();
- }
- }
+ plug_reinit_sound ();
break;
case M_TERMINATE:
return;