all repos — mgba @ 9403b6b84f084203ebab2406463eb75441d2d227

mGBA Game Boy Advance Emulator

GB Audio: Fix zombie mode bit masking
Vicki Pfau vi@endrift.com
Sat, 08 Jul 2017 21:13:54 -0700
commit

9403b6b84f084203ebab2406463eb75441d2d227

parent

01abeb013b498a4a8780cf6c9bb66eb745d7b3a8

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

jump to
M CHANGESCHANGES

@@ -168,6 +168,7 @@ - Qt: Fix patch loading while a game is running

- Qt: Fix shader selector on Ubuntu (fixes mgba.io/i/767) - GB Serialize: Fix timer serialization - GB Audio: Fix incorrect channel 4 iteration + - GB Audio: Fix zombie mode bit masking Misc: - Qt: Add language selector - GBA Timer: Improve accuracy of timers
M src/gb/audio.csrc/gb/audio.c

@@ -702,6 +702,7 @@ envelope->initialVolume = GBAudioRegisterSweepGetInitialVolume(value);

if (!envelope->stepTime) { // TODO: Improve "zombie" mode ++envelope->currentVolume; + envelope->currentVolume &= 0xF; } _updateEnvelopeDead(envelope); envelope->nextStep = envelope->stepTime;