diff options
author | smf- <smf-@users.noreply.github.com> | 2018-07-28 11:59:33 +0100 |
---|---|---|
committer | smf- <smf-@users.noreply.github.com> | 2018-07-28 11:59:33 +0100 |
commit | 982077e1614c82a6328cb96afbc621a607a6d950 (patch) | |
tree | 60a666625af41f26e54bc4b67f23f9fd8b6b15e5 | |
parent | 9b5a95713cc7ad08acb6da3d39a294a755fedbe7 (diff) |
added device_clock_changed (nw)
-rw-r--r-- | src/devices/sound/k053260.cpp | 10 | ||||
-rw-r--r-- | src/devices/sound/k053260.h | 1 |
2 files changed, 11 insertions, 0 deletions
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 @@ -105,6 +105,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 |