Permalink
Browse files

GB Audio: Start implementing "zombie" audio (fixes #389)

  • Loading branch information...
endrift committed Jan 11, 2017
1 parent 62718fc commit dc96bdda851d9b5bd9b8c6c17d5aacd4044ba3a0
Showing with 5 additions and 0 deletions.
  1. +1 −0 CHANGES
  2. +4 −0 src/gb/audio.c
View
@@ -44,6 +44,7 @@ Misc:
- Qt: Improved HiDPI support
- Qt: Expose configuration directory
- Feature: Move game database from flatfile to SQLite3
- GB Audio: Start implementing "zombie" audio (fixes mgba.io/i/389)
0.5.2: (2016-12-31)
Bugfixes:
View
@@ -698,6 +698,10 @@ bool _writeEnvelope(struct GBAudioEnvelope* envelope, uint8_t value) {
envelope->stepTime = GBAudioRegisterSweepGetStepTime(value);
envelope->direction = GBAudioRegisterSweepGetDirection(value);
envelope->initialVolume = GBAudioRegisterSweepGetInitialVolume(value);
if (!envelope->stepTime) {
// TODO: Improve "zombie" mode
++envelope->currentVolume;
}
_updateEnvelopeDead(envelope);
envelope->nextStep = envelope->stepTime;
return (envelope->initialVolume || envelope->direction) && envelope->dead != 2;

0 comments on commit dc96bdd

Please sign in to comment.