diff options
Diffstat (limited to 'src/devices/sound/es5506.cpp')
-rw-r--r-- | src/devices/sound/es5506.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/devices/sound/es5506.cpp b/src/devices/sound/es5506.cpp index 01ef0f580eb..f243f0c06e7 100644 --- a/src/devices/sound/es5506.cpp +++ b/src/devices/sound/es5506.cpp @@ -301,6 +301,17 @@ void es5506_device::device_start() } //------------------------------------------------- +// device_clock_changed +//------------------------------------------------- + +void es550x_device::device_clock_changed() +{ + m_master_clock = clock(); + m_sample_rate = m_master_clock / (16 * (m_active_voices + 1)); + m_stream->set_sample_rate(m_sample_rate); +} + +//------------------------------------------------- // device_reset - device-specific reset //------------------------------------------------- |