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

trunk/src/emu/disound.cpp
r253173r253174
443443
444444void device_mixer_interface::interface_post_load()
445445{
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());
447450
448451   // call our parent
449452   device_sound_interface::interface_post_load();


Previous 199869 Revisions Next


© 1997-2024 The MAME Team