diff --git a/src/devices/sound/ay8910.cpp b/src/devices/sound/ay8910.cpp index 0f92d483c46..4583c11a591 100644 --- a/src/devices/sound/ay8910.cpp +++ b/src/devices/sound/ay8910.cpp @@ -991,6 +991,11 @@ void ay8910_device::ay_set_clock(int clock) m_channel->set_sample_rate( clock / 8 ); } +void ay8910_device::device_clock_changed() +{ + ay_set_clock(clock()); +} + void ay8910_device::ay8910_write_ym(int addr, uint8_t data) { if (addr & 1) diff --git a/src/devices/sound/ay8910.h b/src/devices/sound/ay8910.h index 0592d6c6cfa..c4ea3f0f603 100644 --- a/src/devices/sound/ay8910.h +++ b/src/devices/sound/ay8910.h @@ -156,6 +156,7 @@ protected: // device-level overrides virtual void device_start() override; virtual void device_reset() override; + virtual void device_clock_changed() override; // sound stream update overrides virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override;