1
0
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:
bulzipke 2020-07-28 15:03:43 +09:00 committed by GitHub
parent c13c045e64
commit 1c0fb50877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)