From bbf993eae51576542ef3abf436735bd0c4ee1b84 Mon Sep 17 00:00:00 2001 From: MaranBr Date: Fri, 31 Oct 2025 10:52:50 -0400 Subject: [PATCH] The last one --- src/audio_core/sink/sink_stream.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/audio_core/sink/sink_stream.cpp b/src/audio_core/sink/sink_stream.cpp index 6f59ba4af1..f6faa4d4a6 100644 --- a/src/audio_core/sink/sink_stream.cpp +++ b/src/audio_core/sink/sink_stream.cpp @@ -52,10 +52,8 @@ void SinkStream::AppendBuffer(SinkBuffer& buffer, std::span samples) { ccoeff[u32(Channels::FrontRight)], }; - const f32 left = rcoeff[0] * tcoeff[0] + rcoeff[2] * tcoeff[1] + - rcoeff[3] * tcoeff[2] + rcoeff[1] * tcoeff[3]; - const f32 right = rcoeff[5] * tcoeff[0] + rcoeff[2] * tcoeff[1] + - rcoeff[3] * tcoeff[2] + rcoeff[4] * tcoeff[3]; + const f32 left = rcoeff[0] * tcoeff[0] + rcoeff[2] * tcoeff[1] + rcoeff[3] * tcoeff[2] + rcoeff[1] * tcoeff[3]; + const f32 right = rcoeff[5] * tcoeff[0] + rcoeff[2] * tcoeff[1] + rcoeff[3] * tcoeff[2] + rcoeff[4] * tcoeff[3]; samples[w_offs + 0] = s16(std::clamp(s32(left * volume), min, max)); samples[w_offs + 1] = s16(std::clamp(s32(right * volume), min, max));