mirror of https://github.com/mgba-emu/mgba.git
GB Audio: Fix zombie mode bit masking
This commit is contained in:
parent
01abeb013b
commit
9403b6b84f
1
CHANGES
1
CHANGES
|
@ -168,6 +168,7 @@ Bugfixes:
|
||||||
- Qt: Fix shader selector on Ubuntu (fixes mgba.io/i/767)
|
- Qt: Fix shader selector on Ubuntu (fixes mgba.io/i/767)
|
||||||
- GB Serialize: Fix timer serialization
|
- GB Serialize: Fix timer serialization
|
||||||
- GB Audio: Fix incorrect channel 4 iteration
|
- GB Audio: Fix incorrect channel 4 iteration
|
||||||
|
- GB Audio: Fix zombie mode bit masking
|
||||||
Misc:
|
Misc:
|
||||||
- Qt: Add language selector
|
- Qt: Add language selector
|
||||||
- GBA Timer: Improve accuracy of timers
|
- GBA Timer: Improve accuracy of timers
|
||||||
|
|
|
@ -702,6 +702,7 @@ bool _writeEnvelope(struct GBAudioEnvelope* envelope, uint8_t value) {
|
||||||
if (!envelope->stepTime) {
|
if (!envelope->stepTime) {
|
||||||
// TODO: Improve "zombie" mode
|
// TODO: Improve "zombie" mode
|
||||||
++envelope->currentVolume;
|
++envelope->currentVolume;
|
||||||
|
envelope->currentVolume &= 0xF;
|
||||||
}
|
}
|
||||||
_updateEnvelopeDead(envelope);
|
_updateEnvelopeDead(envelope);
|
||||||
envelope->nextStep = envelope->stepTime;
|
envelope->nextStep = envelope->stepTime;
|
||||||
|
|
Loading…
Reference in New Issue