all repos — mgba @ 21d51964e8be28f2b5e294510c55bee4eb267862

mGBA Game Boy Advance Emulator

Qt: Fix race condition with setting sample rate
Jeffrey Pfau jeffrey@endrift.com
Tue, 17 Nov 2015 19:48:56 -0800
commit

21d51964e8be28f2b5e294510c55bee4eb267862

parent

4ca8d75082407d049f867a7866c848f6661328de

2 files changed, 2 insertions(+), 1 deletions(-)

jump to
M CHANGESCHANGES

@@ -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.cppsrc/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)); } }