SPU: Ignore manually set loop address only on first block

Fixes occasional missing dialogue in Valkyrie Profile.
This commit is contained in:
Connor McLaughlin
2020-12-06 00:31:07 +10:00
parent d7bd21c06d
commit a90c25d0e7
3 changed files with 21 additions and 6 deletions

View File

@@ -244,6 +244,7 @@ private:
VoiceRegisters regs;
VoiceCounter counter;
ADPCMFlags current_block_flags;
bool is_first_block;
std::array<s16, NUM_SAMPLES_FROM_LAST_ADPCM_BLOCK + NUM_SAMPLES_PER_ADPCM_BLOCK> current_block_samples;
std::array<s16, 2> adpcm_last_samples;
s32 last_volume;