diff --git a/src/devices/sound/k053260.cpp b/src/devices/sound/k053260.cpp index 764f02487f9..cc5294b0b59 100644 --- a/src/devices/sound/k053260.cpp +++ b/src/devices/sound/k053260.cpp @@ -104,6 +104,16 @@ void k053260_device::device_start() } +//------------------------------------------------- +// device_clock_changed +//------------------------------------------------- + +void k053260_device::device_clock_changed() +{ + m_stream->set_sample_rate(clock() / CLOCKS_PER_SAMPLE); +} + + //------------------------------------------------- // device_reset - device-specific reset //------------------------------------------------- diff --git a/src/devices/sound/k053260.h b/src/devices/sound/k053260.h index a938a420090..9edb1d522f5 100644 --- a/src/devices/sound/k053260.h +++ b/src/devices/sound/k053260.h @@ -47,6 +47,7 @@ public: protected: // device-level overrides virtual void device_start() override; + virtual void device_clock_changed() override; virtual void device_reset() override; // sound stream update overrides