SPU: Update ADSR envelope when register changes

Fixes menu sounds in Final Fantasy 7 staying audible for too long.
This commit is contained in:
Connor McLaughlin
2020-06-02 01:59:44 +10:00
parent dcfb929de5
commit 8eb3ac69b2
2 changed files with 23 additions and 12 deletions

View File

@ -277,7 +277,7 @@ private:
s32 Interpolate() const;
// Switches to the specified phase, filling in target.
void SetADSRPhase(ADSRPhase phase);
void UpdateADSREnvelope();
// Updates the ADSR volume/phase.
void TickADSR();