Skip to content

Commit

Permalink
Fix CRevModel process function loop stride
Browse files Browse the repository at this point in the history
  • Loading branch information
xddxdd committed Jan 9, 2024
1 parent eb65772 commit 958ff60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viper/utils/CRevModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ void CRevModel::Mute() {
}

void CRevModel::ProcessReplace(float *bufL, float *bufR, uint32_t size) {
for (uint32_t idx = 0; idx < size; idx++) {
for (uint32_t idx = 0; idx < size * 2; idx += 2) {
float outL = 0.0;
float outR = 0.0;
float input = (bufL[idx] + bufR[idx]) * this->gain;
Expand Down

0 comments on commit 958ff60

Please sign in to comment.