all repos — mgba @ 1a4ed6fe5e3c35d2fb8d6df95ec2dcb80ee53b96

mGBA Game Boy Advance Emulator

Qt: Reshuffle some audio handling code
Jeffrey Pfau jeffrey@endrift.com
Sun, 07 Jun 2015 15:18:10 -0700
commit

1a4ed6fe5e3c35d2fb8d6df95ec2dcb80ee53b96

parent

870417d46eaef714f88e89bd6a1594895d0f7a0c

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

jump to
M src/platform/qt/GameController.cppsrc/platform/qt/GameController.cpp

@@ -521,7 +521,6 @@ m_threadContext.fpsTarget *= m_turboSpeed;

} redoSamples(m_audioProcessor->getBufferSamples()); threadContinue(); - QMetaObject::invokeMethod(m_audioProcessor, "inputParametersChanged"); } void GameController::setSkipBIOS(bool set) {

@@ -622,16 +621,16 @@ if (!m_turbo) {

m_threadContext.fpsTarget = m_fpsTarget; m_threadContext.sync.audioWait = m_audioSync; m_threadContext.sync.videoFrameWait = m_videoSync; - redoSamples(m_audioProcessor->getBufferSamples()); } else if (m_turboSpeed <= 0) { + m_threadContext.fpsTarget = m_fpsTarget; m_threadContext.sync.audioWait = false; m_threadContext.sync.videoFrameWait = false; } else { m_threadContext.fpsTarget = m_fpsTarget * m_turboSpeed; m_threadContext.sync.audioWait = true; m_threadContext.sync.videoFrameWait = false; - redoSamples(m_audioProcessor->getBufferSamples()); } + redoSamples(m_audioProcessor->getBufferSamples()); threadContinue(); }

@@ -734,6 +733,7 @@ #endif

if (m_threadContext.gba) { GBAAudioResizeBuffer(&m_threadContext.gba->audio, m_threadContext.audioBuffers); } + QMetaObject::invokeMethod(m_audioProcessor, "inputParametersChanged"); } void GameController::setLogLevel(int levels) {