Skip to content

Commit 4acd06d

Browse files
committed
Reset audio after loading media
1 parent fecd9cf commit 4acd06d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

platforms/desktop-shared/emu.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ void emu_destroy(void)
121121

122122
void emu_load_rom(const char* file_path, bool force_dmg, Cartridge::CartridgeTypes mbc, bool force_gba)
123123
{
124+
emu_audio_reset();
124125
save_ram();
125126
gearboy->LoadROM(file_path, force_dmg, mbc, force_gba);
126127
load_ram();
@@ -201,6 +202,7 @@ bool emu_is_empty(void)
201202

202203
void emu_reset(bool force_dmg, Cartridge::CartridgeTypes mbc, bool force_gba)
203204
{
205+
emu_audio_reset();
204206
save_ram();
205207
gearboy->ResetROM(force_dmg, mbc, force_gba);
206208
load_ram();

0 commit comments

Comments
 (0)