mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix bounded fast forward with Qt Multimedia
This commit is contained in:
parent
6eab8d3418
commit
29b2262e9a
1
CHANGES
1
CHANGES
|
@ -44,6 +44,7 @@ Other fixes:
|
||||||
- FFmpeg: Fix audio conversion producing gaps
|
- FFmpeg: Fix audio conversion producing gaps
|
||||||
- Core: Improved lockstep driver reliability (Le Hoang Quyen)
|
- Core: Improved lockstep driver reliability (Le Hoang Quyen)
|
||||||
- GBA: Fix skipping BIOS on irregularly sized ROMs
|
- GBA: Fix skipping BIOS on irregularly sized ROMs
|
||||||
|
- Qt: Fix bounded fast forward with Qt Multimedia
|
||||||
Misc:
|
Misc:
|
||||||
- GBA Savedata: EEPROM performance fixes
|
- GBA Savedata: EEPROM performance fixes
|
||||||
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
|
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash
|
||||||
|
|
|
@ -440,13 +440,21 @@ void CoreController::rewind(int states) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CoreController::setFastForward(bool enable) {
|
void CoreController::setFastForward(bool enable) {
|
||||||
|
if (m_fastForward == enable) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
m_fastForward = enable;
|
m_fastForward = enable;
|
||||||
updateFastForward();
|
updateFastForward();
|
||||||
|
emit fastForwardChanged(enable);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CoreController::forceFastForward(bool enable) {
|
void CoreController::forceFastForward(bool enable) {
|
||||||
|
if (m_fastForwardForced == enable) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
m_fastForwardForced = enable;
|
m_fastForwardForced = enable;
|
||||||
updateFastForward();
|
updateFastForward();
|
||||||
|
emit fastForwardChanged(enable || m_fastForward);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CoreController::loadState(int slot) {
|
void CoreController::loadState(int slot) {
|
||||||
|
|
|
@ -924,6 +924,7 @@ void Window::reloadAudioDriver() {
|
||||||
m_audioProcessor->requestSampleRate(opts->sampleRate);
|
m_audioProcessor->requestSampleRate(opts->sampleRate);
|
||||||
m_audioProcessor->start();
|
m_audioProcessor->start();
|
||||||
connect(m_controller.get(), &CoreController::stopping, m_audioProcessor.get(), &AudioProcessor::stop);
|
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() {
|
void Window::tryMakePortable() {
|
||||||
|
|
Loading…
Reference in New Issue