Qt: Fix pausing Qt Multimedia audio (fixes #1643)

This commit is contained in:
Vicki Pfau 2020-02-14 19:20:10 -08:00
parent fd352d7cac
commit 458a95e11f
2 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,7 @@ Other fixes:
- Qt: Fix window title not updating after shutting down game - Qt: Fix window title not updating after shutting down game
- Qt: Fix GIF view not allowing manual filename entry - Qt: Fix GIF view not allowing manual filename entry
- Qt: Fix non-GB build (fixes mgba.io/i/1664) - 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 - Util: Fix crash reading invalid ELFs
- VFS: Fix handle leak when double-mapping (fixes mgba.io/i/1659) - VFS: Fix handle leak when double-mapping (fixes mgba.io/i/1659)
Misc: Misc:

View File

@ -949,6 +949,8 @@ void Window::reloadAudioDriver() {
m_audioProcessor->start(); m_audioProcessor->start();
connect(m_controller.get(), &CoreController::stopping, m_audioProcessor.get(), &AudioProcessor::stop); 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::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::changeRenderer() { void Window::changeRenderer() {