Qt: Fix race condition with setting sample rate
Jeffrey Pfau jeffrey@endrift.com
Tue, 17 Nov 2015 19:48:56 -0800
2 files changed,
2 insertions(+),
1 deletions(-)
M
CHANGES
→
CHANGES
@@ -31,6 +31,7 @@ - GBA Hardware: Fix Game Boy Player rumble in Pokemon Pinball
- 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
M
src/platform/qt/GameController.cpp
→
src/platform/qt/GameController.cpp
@@ -593,7 +593,7 @@ if (m_audioProcessor) {
threadInterrupt(); redoSamples(samples); threadContinue(); - QMetaObject::invokeMethod(m_audioProcessor, "setBufferSamples", Q_ARG(int, samples)); + QMetaObject::invokeMethod(m_audioProcessor, "setBufferSamples", Qt::BlockingQueuedConnection, Q_ARG(int, samples)); } }