all repos — mgba @ 15d66422a9d9404066a143298f092163834c2725

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

15d66422a9d9404066a143298f092163834c2725

parent

b6c0d5307f4690b796dd11e13900dcebfacdfcc9

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

jump to
M CHANGESCHANGES

@@ -1,4 +1,6 @@

0.7.0: (Future) +Bugfixes: + - GB Audio: Fix zombie mode bit masking Misc: - GBA Timer: Use global cycles for 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;