diff --git a/src/platform/qt/AudioDevice.cpp b/src/platform/qt/AudioDevice.cpp index 0a7e0ec99..3b9026544 100644 --- a/src/platform/qt/AudioDevice.cpp +++ b/src/platform/qt/AudioDevice.cpp @@ -19,8 +19,9 @@ void AudioDevice::setFormat(const QAudioFormat& format) { if (!GBAThreadHasStarted(m_context)) { return; } - // TODO: make this thread-safe + GBAThreadInterrupt(m_context); m_ratio = GBAAudioCalculateRatio(&m_context->gba->audio, m_context->fpsTarget, format.sampleRate()); + GBAThreadContinue(m_context); } void AudioDevice::setInput(GBAThread* input) {