mirror of https://github.com/mgba-emu/mgba.git
GB Audio: Start implementing "zombie" audio (fixes #389)
This commit is contained in:
parent
62718fce45
commit
dc96bdda85
1
CHANGES
1
CHANGES
|
@ -44,6 +44,7 @@ Misc:
|
||||||
- Qt: Improved HiDPI support
|
- Qt: Improved HiDPI support
|
||||||
- Qt: Expose configuration directory
|
- Qt: Expose configuration directory
|
||||||
- Feature: Move game database from flatfile to SQLite3
|
- 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)
|
0.5.2: (2016-12-31)
|
||||||
Bugfixes:
|
Bugfixes:
|
||||||
|
|
|
@ -698,6 +698,10 @@ bool _writeEnvelope(struct GBAudioEnvelope* envelope, uint8_t value) {
|
||||||
envelope->stepTime = GBAudioRegisterSweepGetStepTime(value);
|
envelope->stepTime = GBAudioRegisterSweepGetStepTime(value);
|
||||||
envelope->direction = GBAudioRegisterSweepGetDirection(value);
|
envelope->direction = GBAudioRegisterSweepGetDirection(value);
|
||||||
envelope->initialVolume = GBAudioRegisterSweepGetInitialVolume(value);
|
envelope->initialVolume = GBAudioRegisterSweepGetInitialVolume(value);
|
||||||
|
if (!envelope->stepTime) {
|
||||||
|
// TODO: Improve "zombie" mode
|
||||||
|
++envelope->currentVolume;
|
||||||
|
}
|
||||||
_updateEnvelopeDead(envelope);
|
_updateEnvelopeDead(envelope);
|
||||||
envelope->nextStep = envelope->stepTime;
|
envelope->nextStep = envelope->stepTime;
|
||||||
return (envelope->initialVolume || envelope->direction) && envelope->dead != 2;
|
return (envelope->initialVolume || envelope->direction) && envelope->dead != 2;
|
||||||
|
|
Loading…
Reference in New Issue