Qt: Fix race condition with setting sample rate

This commit is contained in:
Jeffrey Pfau 2015-11-17 19:48:56 -08:00
parent 4ca8d75082
commit 21d51964e8
2 changed files with 2 additions and 1 deletions

View File

@ -31,6 +31,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:
- Qt: Window size command line options are now supported
- Qt: Increase usability of key mapper

View File

@ -593,7 +593,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));
}
}