Qt: Fix race condition with setting sample rate

This commit is contained in:
Jeffrey Pfau 2015-11-17 19:48:56 -08:00
parent 07719860c3
commit 0dcc4df249
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ Bugfixes:
- OpenGL: Fix fast-forward on some OpenGL drivers where it may block early
- GBA BIOS: Fix Sqrt sign
- GBA BIOS: Fix misaligned RLUnCompReadNormalWrite*
- Qt: Fix race condition with setting sample rate
Misc:
- GBA Audio: Implement missing flags on SOUNDCNT_X register

View File

@ -597,7 +597,7 @@ void GameController::setAudioBufferSamples(int samples) {
threadInterrupt();
redoSamples(samples);
threadContinue();
QMetaObject::invokeMethod(m_audioProcessor, "setBufferSamples", Q_ARG(int, samples));
QMetaObject::invokeMethod(m_audioProcessor, "setBufferSamples", Qt::BlockingQueuedConnection, Q_ARG(int, samples));
}
}