diff options
author | Aaron Giles <aaron@aarongiles.com> | 2020-09-15 23:48:05 -0700 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2020-09-15 23:48:27 -0700 |
commit | 0a70f280bb04e4c36adbe30ea6c1a72ab66b2246 (patch) | |
tree | 749d76b4b3a2834d8223ede03c86046c6f1c3d66 | |
parent | 0c05da59fd4032fdbbf0f4cd4e120ca11f5bfc7a (diff) |
sound: Fix #7241, crash when restoring save state.
-rw-r--r-- | src/emu/sound.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/sound.cpp b/src/emu/sound.cpp index 5988c703147..a00546f7af3 100644 --- a/src/emu/sound.cpp +++ b/src/emu/sound.cpp @@ -865,6 +865,10 @@ void sound_stream::sample_rate_changed() void sound_stream::postload() { + // set the end time of all of our streams to now + for (auto &output : m_output) + output.set_end_time(m_device.machine().time()); + // recompute the sample rate information sample_rate_changed(); } |