Sas: Properly support the OFF reverb type.

This commit is contained in:
Unknown W. Brackets 2015-11-01 20:32:10 -08:00
parent 42222ad497
commit 9c378c4eda
2 changed files with 5 additions and 8 deletions

View file

@ -603,8 +603,8 @@ void SasInstance::Mix(u32 outAddr, u32 inAddr, int leftVol, int rightVol) {
}
void SasInstance::WriteMixedOutput(s16 *outp, const s16 *inp, int leftVol, int rightVol) {
const bool dry = waveformEffect.isDryOn;
const bool wet = waveformEffect.isWetOn && waveformEffect.type != PSP_SAS_EFFECT_TYPE_OFF;
const bool dry = waveformEffect.isDryOn != 0;
const bool wet = waveformEffect.isWetOn != 0;
if (wet) {
ApplyWaveformEffect();
}

View file

@ -207,13 +207,10 @@ private:
};
void SasReverb::ProcessReverb(int16_t *output, const int16_t *input, size_t inputSize, int16_t volLeft, int16_t volRight) {
// Can be used to verify that the error is in here...
if (false) {
memcpy(output, input, inputSize * 2 * sizeof(int16_t));
return;
}
// This means replicate the input signal in the processed buffer.
// Can also be used to verify that the error is in here...
if (preset_ == -1) {
// We should not be called.
memcpy(output, input, inputSize * 2 * sizeof(int16_t));
return;
}