mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
tankbatt: Improved handling of sample triggers (fire sound is no longer doubled)
This commit is contained in:
parent
921b938b40
commit
7bc0e7fe2c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user