mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
Reimplement audio start/stop (courtesy aliaspider)
This commit is contained in:
parent
f87425ef9a
commit
8a8042bb5e
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user