diff options
author | smf- <smf-@users.noreply.github.com> | 2018-07-27 22:01:32 +0100 |
---|---|---|
committer | smf- <smf-@users.noreply.github.com> | 2018-07-27 23:31:57 +0100 |
commit | 20b5f5d0e6f73b9ce6fffa4fc5dbe3f2b83d2a27 (patch) | |
tree | 6b2e65ff16ba891d282a1dd0c226bd4f4d32a5f5 /src/devices/sound/ym2413.cpp | |
parent | 5460bc0d3d80560992121d9837ddc5f1f434ee07 (diff) |
vgmplay: start all clocks at zero and reset all sound chips on a song change [smf]
Diffstat (limited to 'src/devices/sound/ym2413.cpp')
-rw-r--r-- | src/devices/sound/ym2413.cpp | 8 |
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 //------------------------------------------------- |