summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-03-09 04:43:02 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-03-09 04:43:02 +0000
commit54498e58ed4c033975fb20859aaab6ec667dc339 (patch)
tree6549531fe5e820e6373e317d874ab4c1fc4fd166
parent3043e00fb504f4beb05935d51ae33d76e71a1fe2 (diff)
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.
-rw-r--r--src/emu/mame.c2
1 files changed, 2 insertions, 0 deletions
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);
}