mirror of https://github.com/mgba-emu/mgba.git
3DS: Fix crash if CSND is not available
This commit is contained in:
parent
ef9bb6ac5c
commit
e6429cc8a2
|
@ -77,8 +77,10 @@ static void _gameLoaded(struct GBAGUIRunner* runner) {
|
|||
blip_set_rates(runner->context.gba->audio.left, GBA_ARM7TDMI_FREQUENCY, 0x8000);
|
||||
blip_set_rates(runner->context.gba->audio.right, GBA_ARM7TDMI_FREQUENCY, 0x8000);
|
||||
#endif
|
||||
memset(audioLeft, 0, AUDIO_SAMPLES * 2 * sizeof(int16_t));
|
||||
memset(audioRight, 0, AUDIO_SAMPLES * 2 * sizeof(int16_t));
|
||||
if (hasSound) {
|
||||
memset(audioLeft, 0, AUDIO_SAMPLES * 2 * sizeof(int16_t));
|
||||
memset(audioRight, 0, AUDIO_SAMPLES * 2 * sizeof(int16_t));
|
||||
}
|
||||
}
|
||||
|
||||
static void _gameUnloaded(struct GBAGUIRunner* runner) {
|
||||
|
|
Loading…
Reference in New Issue