Browse Source

The last one

pull/2903/head
MaranBr 3 months ago
parent
commit
bbf993eae5
  1. 6
      src/audio_core/sink/sink_stream.cpp

6
src/audio_core/sink/sink_stream.cpp

@ -52,10 +52,8 @@ void SinkStream::AppendBuffer(SinkBuffer& buffer, std::span<s16> 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));

Loading…
Cancel
Save