From 353159b1de0888a489bf3c68d5651563b6d7de70 Mon Sep 17 00:00:00 2001 From: MaranBr Date: Fri, 31 Oct 2025 10:57:32 -0400 Subject: [PATCH] For real now --- src/audio_core/sink/sink_stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio_core/sink/sink_stream.cpp b/src/audio_core/sink/sink_stream.cpp index f6faa4d4a6..f94217ebeb 100644 --- a/src/audio_core/sink/sink_stream.cpp +++ b/src/audio_core/sink/sink_stream.cpp @@ -38,7 +38,6 @@ 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) { - std::array ccoeff{0.f}; for (u32 i = 0; i < system_channels; ++i) ccoeff[i] = f32(samples[r_offs + i]); @@ -74,6 +73,7 @@ void SinkStream::AppendBuffer(SinkBuffer& buffer, std::span samples) { for (u32 i = 0; i < samples.size(); ++i) samples[i] = s16(std::clamp(s32(f32(samples[i]) * volume), min, max)); } + queue.EmplaceWait(buffer); samples_buffer.Push(samples); }