diff options
author | Jonathan Gevaryahu <Lord-Nightmare@users.noreply.github.com> | 2010-04-28 02:37:57 +0000 |
---|---|---|
committer | Jonathan Gevaryahu <Lord-Nightmare@users.noreply.github.com> | 2010-04-28 02:37:57 +0000 |
commit | cd4aef0bd5cb8a4d2f781f9cc031aa8687bd7311 (patch) | |
tree | 85fc16f491ac0503b387c65b0de4668af40ba5ff /src/mame/drivers/gauntlet.c | |
parent | 6412b166486e74dd6c1f5cd15db6b99d510c2a81 (diff) |
Hook up the ym2151 reset bit to the sound cpu in gauntlet, and fixed sound reset to properly reset all the sound chips and volume latches. [Lord Nightmare]
Diffstat (limited to 'src/mame/drivers/gauntlet.c')
-rw-r--r-- | src/mame/drivers/gauntlet.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mame/drivers/gauntlet.c b/src/mame/drivers/gauntlet.c index a27b807448b..a0d98f8653f 100644 --- a/src/mame/drivers/gauntlet.c +++ b/src/mame/drivers/gauntlet.c @@ -213,6 +213,15 @@ static WRITE16_HANDLER( sound_reset_w ) { cputag_set_input_line(space->machine, "audiocpu", INPUT_LINE_RESET, (state->sound_reset_val & 1) ? CLEAR_LINE : ASSERT_LINE); atarigen_sound_reset(space->machine); + if (state->sound_reset_val & 1) + { + devtag_reset(space->machine, "ymsnd"); + devtag_reset(space->machine, "tms"); + tms5220_set_frequency(devtag_get_device(space->machine, "tms"), ATARI_CLOCK_14MHz/2 / 11); + atarigen_set_ym2151_vol(space->machine, 0); + atarigen_set_pokey_vol(space->machine, 0); + atarigen_set_tms5220_vol(space->machine, 0); + } } } } @@ -251,6 +260,7 @@ static WRITE8_HANDLER( sound_ctl_w ) switch (offset & 7) { case 0: /* music reset, bit D7, low reset */ + if (((data>>7)&1) == 0) devtag_reset(space->machine, "ymsnd"); break; case 1: /* speech write, bit D7, active low */ |