summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/262intf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/262intf.cpp')
-rw-r--r--src/devices/sound/262intf.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/devices/sound/262intf.cpp b/src/devices/sound/262intf.cpp
index c4da329ecff..905d9afd8b6 100644
--- a/src/devices/sound/262intf.cpp
+++ b/src/devices/sound/262intf.cpp
@@ -109,6 +109,17 @@ void ymf262_device::device_reset()
ymf262_reset_chip(m_chip);
}
+//-------------------------------------------------
+// device_clock_changed - called if the clock
+// changes
+//-------------------------------------------------
+
+void ymf262_device::device_clock_changed()
+{
+ int rate = clock()/288;
+ ymf262_clock_changed(m_chip,clock(),rate);
+ m_stream->set_sample_rate(rate);
+}
READ8_MEMBER( ymf262_device::read )
{