tankbatt: Improved handling of sample triggers (fire sound is no longer doubled)

This commit is contained in:
AJR 2017-07-28 11:19:32 -04:00
parent 921b938b40
commit 7bc0e7fe2c

View File

@ -124,7 +124,7 @@ WRITE_LINE_MEMBER(tankbatt_state::demo_interrupt_enable_w)
WRITE_LINE_MEMBER(tankbatt_state::sh_expl_w)
{
if (m_sound_enable)
if (state) // rising edge
{
m_samples->start(1, 3);
}
@ -144,7 +144,7 @@ WRITE_LINE_MEMBER(tankbatt_state::sh_engine_w)
WRITE_LINE_MEMBER(tankbatt_state::sh_fire_w)
{
if (m_sound_enable)
if (state) // rising edge
{
m_samples->start(0, 0);
}