From 8a8042bb5ec4e8fb6f46c4c2b5525e6052c5c00e Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 23 Aug 2015 21:05:10 +0200 Subject: [PATCH] Reimplement audio start/stop (courtesy aliaspider) --- ui/drivers/ui_cocoatouch.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/drivers/ui_cocoatouch.m b/ui/drivers/ui_cocoatouch.m index c5ff01b361..7df915dac5 100644 --- a/ui/drivers/ui_cocoatouch.m +++ b/ui/drivers/ui_cocoatouch.m @@ -345,11 +345,13 @@ enum [[UIApplication sharedApplication] setIdleTimerDisabled:true]; [self.window setRootViewController:[CocoaView get]]; + ui_companion_cocoatouch_event_command(NULL, EVENT_CMD_AUDIO_START); rarch_disable_ui(); } - (IBAction)showPauseMenu:(id)sender { + ui_companion_cocoatouch_event_command(NULL, EVENT_CMD_AUDIO_STOP); rarch_enable_ui(); [[UIApplication sharedApplication] setStatusBarHidden:false withAnimation:UIStatusBarAnimationNone]; @@ -374,8 +376,6 @@ static void ui_companion_cocoatouch_event_command(void *data, } else { - if (settings->menu.pause_libretro) - ui_companion_cocoatouch_event_command(NULL, EVENT_CMD_AUDIO_STOP); [self showPauseMenu:self]; }