sound: Fix #7241, crash when restoring save state.

This commit is contained in:
Aaron Giles 2020-09-15 23:48:05 -07:00
parent 0c05da59fd
commit 0a70f280bb

View File

@ -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();
}