From f4c2697884c839c452b8b3d474accbcb75db59fd Mon Sep 17 00:00:00 2001 From: MaranBr Date: Fri, 31 Oct 2025 10:47:01 -0400 Subject: [PATCH] Just a minor thing --- 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 f2d29dc050..a619dce670 100644 --- a/src/audio_core/sink/sink_stream.cpp +++ b/src/audio_core/sink/sink_stream.cpp @@ -37,8 +37,7 @@ void SinkStream::AppendBuffer(SinkBuffer& buffer, std::span samples) { if (system_channels > device_channels) { static constexpr std::array tcoeff{1.0f, 0.596f, 0.354f, 0.707f}; - for (u32 r_offs = 0, w_offs = 0; r_offs < samples.size(); - r_offs += system_channels, w_offs += device_channels) { + for (u32 r_offs = 0, w_offs = 0; r_offs < samples.size(); r_offs += system_channels, w_offs += device_channels) { std::array ccoeff{0.f}; for (u32 i = 0; i < system_channels; ++i) @@ -66,8 +65,7 @@ void SinkStream::AppendBuffer(SinkBuffer& buffer, std::span samples) { samples_buffer.Push(samples.subspan(0, samples.size() / system_channels * device_channels)); } else if (system_channels < device_channels) { std::vector new_samples(samples.size() / system_channels * device_channels); - for (u32 r_offs = 0, w_offs = 0; r_offs < samples.size(); - r_offs += system_channels, w_offs += device_channels) + for (u32 r_offs = 0, w_offs = 0; r_offs < samples.size(); r_offs += system_channels, w_offs += device_channels) for (u32 channel = 0; channel < system_channels; ++channel) new_samples[w_offs + channel] = s16(std::clamp(s32(f32(samples[r_offs + channel]) * volume), min, max));