mirror of https://github.com/mgba-emu/mgba.git
GBA Thread: Fix initial volume when starting a game
This commit is contained in:
parent
04c6080f24
commit
bdc72bb73b
|
@ -238,9 +238,9 @@ static THREAD_ENTRY _GBAThreadRun(void* context) {
|
||||||
threadContext->volume = GBA_AUDIO_VOLUME_MAX;
|
threadContext->volume = GBA_AUDIO_VOLUME_MAX;
|
||||||
}
|
}
|
||||||
if (threadContext->mute) {
|
if (threadContext->mute) {
|
||||||
gba.audio.volume = 0;
|
gba.audio.masterVolume = 0;
|
||||||
} else {
|
} else {
|
||||||
gba.audio.volume = threadContext->volume;
|
gba.audio.masterVolume = threadContext->volume;
|
||||||
}
|
}
|
||||||
|
|
||||||
gba.keySource = &threadContext->activeKeys;
|
gba.keySource = &threadContext->activeKeys;
|
||||||
|
|
Loading…
Reference in New Issue