Skip to content

Commit

Permalink
Update dsp_simd.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat authored Nov 20, 2024
1 parent f89fc48 commit 397d952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/audio/dsp_simd.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ namespace DSP::MixIntoQuad {
// Multiply samples by their respective gains, truncate the result, and add it into the intermediate mix buffer
int32x4_t offset = vcvtq_s32_f32(vmulq_f32(currentFrame, gains_));
int32x4_t intermediateMixPrev = vld1q_s32((s32*)&mix[sampleIndex][0]);
int32x4_t result = vaddq_f32(intermediateMixPrev, offset);
int32x4_t result = vaddq_s32(intermediateMixPrev, offset);
vst1q_s32((s32*)&mix[sampleIndex][0], result);
}
}
Expand All @@ -75,4 +75,4 @@ namespace DSP::MixIntoQuad {
return mixPortable(mix, frame, gains);
#endif
}
} // namespace DSP::MixIntoQuad
} // namespace DSP::MixIntoQuad

0 comments on commit 397d952

Please sign in to comment.