GBA Thread: Fix initial volume when starting a game

This commit is contained in:
Jeffrey Pfau 2015-05-23 23:22:02 -07:00
parent 04c6080f24
commit bdc72bb73b
1 changed files with 2 additions and 2 deletions

View File

@ -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;