GB Audio: Fix zombie mode bit masking

This commit is contained in:
Vicki Pfau 2017-07-08 21:13:54 -07:00
parent b6c0d5307f
commit 15d66422a9
2 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,6 @@
0.7.0: (Future)
Bugfixes:
- GB Audio: Fix zombie mode bit masking
Misc:
- GBA Timer: Use global cycles for timers

View File

@ -702,6 +702,7 @@ bool _writeEnvelope(struct GBAudioEnvelope* envelope, uint8_t value) {
if (!envelope->stepTime) {
// TODO: Improve "zombie" mode
++envelope->currentVolume;
envelope->currentVolume &= 0xF;
}
_updateEnvelopeDead(envelope);
envelope->nextStep = envelope->stepTime;