all repos — mgba @ 29b2262e9a13ccc681e3ef74a18073571810125f

mGBA Game Boy Advance Emulator

Qt: Fix bounded fast forward with Qt Multimedia
Vicki Pfau vi@endrift.com
Mon, 20 May 2019 11:20:00 -0700
commit

29b2262e9a13ccc681e3ef74a18073571810125f

parent

6eab8d3418507fb9491f7890357b9d2eaec57383

3 files changed, 10 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -44,6 +44,7 @@ - Qt: Fix some Qt display driver race conditions

- FFmpeg: Fix audio conversion producing gaps - Core: Improved lockstep driver reliability (Le Hoang Quyen) - GBA: Fix skipping BIOS on irregularly sized ROMs + - Qt: Fix bounded fast forward with Qt Multimedia Misc: - GBA Savedata: EEPROM performance fixes - GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
M src/platform/qt/CoreController.cppsrc/platform/qt/CoreController.cpp

@@ -440,13 +440,21 @@ emit rewound();

} void CoreController::setFastForward(bool enable) { + if (m_fastForward == enable) { + return; + } m_fastForward = enable; updateFastForward(); + emit fastForwardChanged(enable); } void CoreController::forceFastForward(bool enable) { + if (m_fastForwardForced == enable) { + return; + } m_fastForwardForced = enable; updateFastForward(); + emit fastForwardChanged(enable || m_fastForward); } void CoreController::loadState(int slot) {
M src/platform/qt/Window.cppsrc/platform/qt/Window.cpp

@@ -924,6 +924,7 @@ m_audioProcessor->setBufferSamples(opts->audioBuffers);

m_audioProcessor->requestSampleRate(opts->sampleRate); m_audioProcessor->start(); connect(m_controller.get(), &CoreController::stopping, m_audioProcessor.get(), &AudioProcessor::stop); + connect(m_controller.get(), &CoreController::fastForwardChanged, m_audioProcessor.get(), &AudioProcessor::inputParametersChanged); } void Window::tryMakePortable() {