mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix crash when adjusting settings after closing a game
This commit is contained in:
parent
7f592f78e8
commit
2235dcf2ab
1
CHANGES
1
CHANGES
|
@ -41,6 +41,7 @@ Bugfixes:
|
||||||
- GBA Thread: Fix possible deadlock in video sync
|
- GBA Thread: Fix possible deadlock in video sync
|
||||||
- GBA: Fix savestate loading of DISPSTAT and WAITCNT registers
|
- GBA: Fix savestate loading of DISPSTAT and WAITCNT registers
|
||||||
- Qt: Fix crash starting a GDB stub if a game isn't loaded
|
- Qt: Fix crash starting a GDB stub if a game isn't loaded
|
||||||
|
- Qt: Fix crash when adjusting settings after closing a game
|
||||||
Misc:
|
Misc:
|
||||||
- GBA Audio: Change internal audio sample buffer from 32-bit to 16-bit samples
|
- GBA Audio: Change internal audio sample buffer from 32-bit to 16-bit samples
|
||||||
- GBA Memory: Simplify memory API and use fixed bus width
|
- GBA Memory: Simplify memory API and use fixed bus width
|
||||||
|
|
|
@ -22,7 +22,7 @@ AudioDevice::AudioDevice(QObject* parent)
|
||||||
}
|
}
|
||||||
|
|
||||||
void AudioDevice::setFormat(const QAudioFormat& format) {
|
void AudioDevice::setFormat(const QAudioFormat& format) {
|
||||||
if (!GBAThreadHasStarted(m_context)) {
|
if (!GBAThreadIsActive(m_context)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#if RESAMPLE_LIBRARY == RESAMPLE_NN
|
#if RESAMPLE_LIBRARY == RESAMPLE_NN
|
||||||
|
|
Loading…
Reference in New Issue