mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 03:39:59 +00:00
Update ctr_gfx.c
It fixed the sound cracking when opening or closing the 3DS screen.
This commit is contained in:
parent
c13c045e64
commit
1c0fb50877
@ -294,6 +294,19 @@ static void ctr_lcd_aptHook(APT_HookType hook, void* param)
|
||||
svcCloseHandle(lcd_handle);
|
||||
}
|
||||
}
|
||||
|
||||
if (menu_driver_is_alive())
|
||||
{
|
||||
return;
|
||||
}
|
||||
else if ((hook == APTHOOK_ONSUSPEND) || (hook == APTHOOK_ONSLEEP))
|
||||
{
|
||||
command_event(CMD_EVENT_AUDIO_STOP, NULL);
|
||||
}
|
||||
else if ((hook == APTHOOK_ONRESTORE) || (hook == APTHOOK_ONWAKEUP))
|
||||
{
|
||||
command_event(CMD_EVENT_AUDIO_START, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
static void ctr_vsync_hook(ctr_video_t* ctr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user