all repos — mgba @ dc96bdda851d9b5bd9b8c6c17d5aacd4044ba3a0

mGBA Game Boy Advance Emulator

GB Audio: Start implementing "zombie" audio (fixes #389)
Jeffrey Pfau jeffrey@endrift.com
Wed, 11 Jan 2017 03:31:50 -0800
commit

dc96bdda851d9b5bd9b8c6c17d5aacd4044ba3a0

parent

62718fce45c6d2f2ca21ee932edda797c5705189

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

jump to
M CHANGESCHANGES

@@ -44,6 +44,7 @@ - GBA I/O: Set JOYSTAT TRANS flag when writing JOY_TRANS registers

- 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:
M src/gb/audio.csrc/gb/audio.c

@@ -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;