Qt: Ensure audio processor is only set if one is present in config
Jeffrey Pfau jeffrey@endrift.com
Sun, 16 Aug 2015 19:56:45 -0700
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
src/platform/qt/GBAApp.cpp
→
src/platform/qt/GBAApp.cpp
@@ -57,7 +57,9 @@ ::exit(0);
return; } - AudioProcessor::setDriver(static_cast<AudioProcessor::Driver>(m_configController.getQtOption("audioDriver").toInt())); + if (!m_configController.getQtOption("audioDriver").isNull()) { + AudioProcessor::setDriver(static_cast<AudioProcessor::Driver>(m_configController.getQtOption("audioDriver").toInt())); + } Window* w = new Window(&m_configController); connect(w, &Window::destroyed, [this]() { m_windows[0] = nullptr;