From 54498e58ed4c033975fb20859aaab6ec667dc339 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Mon, 9 Mar 2009 04:43:02 +0000 Subject: Add muting just before saving the NVRAM, and de-mute just after loading the NVRAM. Should cure the stuck sound issue for games with large NVRAM. --- src/emu/mame.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/emu/mame.c b/src/emu/mame.c index 6954a4a0f8e..2699b0de3c4 100644 --- a/src/emu/mame.c +++ b/src/emu/mame.c @@ -335,6 +335,7 @@ int mame_execute(core_options *options) /* load the configuration settings and NVRAM */ settingsloaded = config_load_settings(machine); nvram_load(machine); + sound_mute(FALSE); /* display the startup screens */ ui_display_startup_screens(machine, firstrun, !settingsloaded); @@ -376,6 +377,7 @@ int mame_execute(core_options *options) end_resource_tracking(); /* save the NVRAM and configuration */ + sound_mute(TRUE); nvram_save(machine); config_save_settings(machine); } -- cgit v1.2.3