all repos — mgba @ bfd8faf68533d5a922d8b9dfa1a5224bf630073e

mGBA Game Boy Advance Emulator

Qt: Fix pausing Qt Multimedia audio (fixes #1643)
Vicki Pfau vi@endrift.com
Fri, 14 Feb 2020 19:20:10 -0800
commit

bfd8faf68533d5a922d8b9dfa1a5224bf630073e

parent

8cbddf28c7a15fb5c12cf7d74b4812d1a8ac77ef

2 files changed, 3 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -25,6 +25,7 @@ - Qt: Fix extraneous dialog (fixes mgba.io/i/1654)

- Qt: Fix window title not updating after shutting down game - Qt: Fix GIF view not allowing manual filename entry - Qt: Fix non-GB build (fixes mgba.io/i/1664) + - Qt: Fix pausing Qt Multimedia audio (fixes mgba.io/i/1643) - Util: Fix crash reading invalid ELFs - VFS: Fix handle leak when double-mapping (fixes mgba.io/i/1659) Misc:
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -960,6 +960,8 @@ m_audioProcessor->requestSampleRate(opts->sampleRate);

m_audioProcessor->start(); connect(m_controller.get(), &CoreController::stopping, m_audioProcessor.get(), &AudioProcessor::stop); connect(m_controller.get(), &CoreController::fastForwardChanged, m_audioProcessor.get(), &AudioProcessor::inputParametersChanged); + connect(m_controller.get(), &CoreController::paused, m_audioProcessor.get(), &AudioProcessor::pause); + connect(m_controller.get(), &CoreController::unpaused, m_audioProcessor.get(), &AudioProcessor::start); } void Window::tryMakePortable() {