mirror of
https://github.com/holub/mame
synced 2025-07-05 18:08:04 +03:00
sound: Fix #7241, crash when restoring save state.
This commit is contained in:
parent
0c05da59fd
commit
0a70f280bb
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user