From 2bd93932e61f7e64aacf30b4cda505955494df6f Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 12 Jan 2013 01:42:04 +0100 Subject: [PATCH] (RMenu/RARCH_CONSOLE) Won't start/stop audio when toggle mode is selected --- frontend/frontend_console.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/frontend_console.c b/frontend/frontend_console.c index 2dfc22b741..1dab6f6351 100644 --- a/frontend/frontend_console.c +++ b/frontend/frontend_console.c @@ -307,9 +307,14 @@ begin_loop: { driver.input->poll(NULL); driver.video->set_aspect_ratio(driver.video_data, g_settings.video.aspect_ratio_idx); - audio_start_func(); + + if (g_extern.lifecycle_menu_state & (1 << MODE_VIDEO_THROTTLE_ENABLE)) + audio_start_func(); + while(rarch_main_iterate()); - audio_stop_func(); + + if (g_extern.lifecycle_menu_state & (1 << MODE_VIDEO_THROTTLE_ENABLE)) + audio_stop_func(); g_extern.lifecycle_menu_state &= ~(1 << MODE_EMULATION); } else if (g_extern.lifecycle_menu_state & (1 << MODE_INIT))