diff options
Diffstat (limited to 'src/mame/machine/super80.cpp')
-rw-r--r-- | src/mame/machine/super80.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mame/machine/super80.cpp b/src/mame/machine/super80.cpp index 9d44cc7cec4..c08288c89a8 100644 --- a/src/mame/machine/super80.cpp +++ b/src/mame/machine/super80.cpp @@ -31,9 +31,13 @@ READ8_MEMBER( super80_state::pio_port_b_r ) /**************************** CASSETTE ROUTINES *****************************************************************/ -void super80_state::super80_cassette_motor( UINT8 data ) +void super80_state::super80_cassette_motor( bool motor_state ) { - if (data) + // relay sound + if (BIT(m_last_data, 1) != motor_state) + m_samples->start(0, motor_state ? 0 : 1); + + if (motor_state) m_cassette->change_state(CASSETTE_MOTOR_DISABLED,CASSETTE_MASK_MOTOR); else m_cassette->change_state(CASSETTE_MOTOR_ENABLED,CASSETTE_MASK_MOTOR); |