Skip to content

Commit

Permalink
Fix some addresses.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd002 committed Jun 10, 2024
1 parent 67aa1c2 commit a5753e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/iop/Iop_SpuBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -977,8 +977,8 @@ void CSpuBase::UpdateReverb(int16 reverbSample[2], int16* samples)
{
//IIR_INPUT_A0 = buffer[IIR_SRC_A0] * IIR_COEF + INPUT_SAMPLE_L * IN_COEF_L;
//IIR_INPUT_A1 = buffer[IIR_SRC_A1] * IIR_COEF + INPUT_SAMPLE_R * IN_COEF_R;
//IIR_INPUT_B0 = buffer[IIR_SRC_B0] * IIR_COEF + INPUT_SAMPLE_L * IN_COEF_L;
//IIR_INPUT_B1 = buffer[IIR_SRC_B1] * IIR_COEF + INPUT_SAMPLE_R * IN_COEF_R;
//IIR_INPUT_B0 = buffer[IIR_SRC_B1] * IIR_COEF + INPUT_SAMPLE_L * IN_COEF_L;
//IIR_INPUT_B1 = buffer[IIR_SRC_B0] * IIR_COEF + INPUT_SAMPLE_R * IN_COEF_R;

float input_sample_l = static_cast<float>(reverbSample[0]) * 0.5f;
float input_sample_r = static_cast<float>(reverbSample[1]) * 0.5f;
Expand All @@ -989,8 +989,8 @@ void CSpuBase::UpdateReverb(int16 reverbSample[2], int16* samples)

float iir_input_a0 = GetReverbSample(GetReverbOffset(IIR_SRC_A0)) * irr_coef + input_sample_l * in_coef_l;
float iir_input_a1 = GetReverbSample(GetReverbOffset(IIR_SRC_A1)) * irr_coef + input_sample_r * in_coef_r;
float iir_input_b0 = GetReverbSample(GetReverbOffset(IIR_SRC_B0)) * irr_coef + input_sample_l * in_coef_l;
float iir_input_b1 = GetReverbSample(GetReverbOffset(IIR_SRC_B1)) * irr_coef + input_sample_r * in_coef_r;
float iir_input_b0 = GetReverbSample(GetReverbOffset(IIR_SRC_B1)) * irr_coef + input_sample_l * in_coef_l;
float iir_input_b1 = GetReverbSample(GetReverbOffset(IIR_SRC_B0)) * irr_coef + input_sample_r * in_coef_r;

//IIR_A0 = IIR_INPUT_A0 * IIR_ALPHA + buffer[IIR_DEST_A0] * (1.0 - IIR_ALPHA);
//IIR_A1 = IIR_INPUT_A1 * IIR_ALPHA + buffer[IIR_DEST_A1] * (1.0 - IIR_ALPHA);
Expand Down

0 comments on commit a5753e5

Please sign in to comment.