diff options
Diffstat (limited to 'src/devices/sound/2610intf.cpp')
-rw-r--r-- | src/devices/sound/2610intf.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/devices/sound/2610intf.cpp b/src/devices/sound/2610intf.cpp index ae208511d03..6b2e2886d8c 100644 --- a/src/devices/sound/2610intf.cpp +++ b/src/devices/sound/2610intf.cpp @@ -51,7 +51,7 @@ void ym2610_device::device_timer(emu_timer &timer, device_timer_id id, int param void ym2610_device::timer_handler(int c,int count,int clock) { - if( count == 0 ) + if( count == 0 || clock == 0 ) { /* Reset FM Timer */ m_timer[c]->enable(false); } @@ -129,6 +129,16 @@ void ym2610_device::device_start() } //------------------------------------------------- +// device_clock_changed +//------------------------------------------------- + +void ym2610_device::device_clock_changed() +{ + m_stream->set_sample_rate(clock() / 72); + ym2610_clock_changed(m_chip, clock(), clock() / 72); +} + +//------------------------------------------------- // device_stop - device-specific stop //------------------------------------------------- |