Previous | 199869 Revisions | Next |
r44662 Thursday 4th February, 2016 at 12:34:09 UTC by Olivier Galibert |
---|
disound: Don't crash on state load when the mixer is disabled by lack of inputs (misconfiguration or missing samples) [O. Galibert] |
[src/emu] | disound.cpp |
r253173 | r253174 | |
---|---|---|
443 | 443 | |
444 | 444 | void device_mixer_interface::interface_post_load() |
445 | 445 | { |
446 | m_mixer_stream->set_sample_rate(device().machine().sample_rate()); | |
446 | // Beware that there's not going to be a mixer stream if there was | |
447 | // no inputs | |
448 | if (m_mixer_stream) | |
449 | m_mixer_stream->set_sample_rate(device().machine().sample_rate()); | |
447 | 450 | |
448 | 451 | // call our parent |
449 | 452 | device_sound_interface::interface_post_load(); |
https://github.com/mamedev/mame/commit/23fd282121ea5c478fa45f3edc868309b85e25fc |
Previous | 199869 Revisions | Next |