summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/ym2413.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/ym2413.cpp')
-rw-r--r--src/devices/sound/ym2413.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/devices/sound/ym2413.cpp b/src/devices/sound/ym2413.cpp
index 4d9da3d1dee..69ad6b31e33 100644
--- a/src/devices/sound/ym2413.cpp
+++ b/src/devices/sound/ym2413.cpp
@@ -1616,6 +1616,14 @@ void ym2413_device::device_start()
}
//-------------------------------------------------
+// device_clock_changed
+//-------------------------------------------------
+void ym2413_device::device_clock_changed()
+{
+ m_stream->set_sample_rate(clock() / 72);
+}
+
+//-------------------------------------------------
// device_reset - device-specific reset
//-------------------------------------------------