all repos — mgba @ bdc72bb73b1988de6d96132f40e887918d75d539

mGBA Game Boy Advance Emulator

GBA Thread: Fix initial volume when starting a game
Jeffrey Pfau jeffrey@endrift.com
Sat, 23 May 2015 23:22:02 -0700
commit

bdc72bb73b1988de6d96132f40e887918d75d539

parent

04c6080f243d97c45b662b9231a5737e23378ff1

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/gba/supervisor/thread.csrc/gba/supervisor/thread.c

@@ -238,9 +238,9 @@ if (threadContext->volume == 0) {

threadContext->volume = GBA_AUDIO_VOLUME_MAX; } if (threadContext->mute) { - gba.audio.volume = 0; + gba.audio.masterVolume = 0; } else { - gba.audio.volume = threadContext->volume; + gba.audio.masterVolume = threadContext->volume; } gba.keySource = &threadContext->activeKeys;