From 0d0dabfe6f4e6d0381ce37bdb3075c4223760dea Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 16 Feb 2024 00:47:03 +0100 Subject: [PATCH] audio: fix bug in channel conversion stream object --- include/lol/private/audio/stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lol/private/audio/stream.h b/include/lol/private/audio/stream.h index b1827f09..08f0ac9b 100644 --- a/include/lol/private/audio/stream.h +++ b/include/lol/private/audio/stream.h @@ -137,7 +137,7 @@ public: s0->get(tmp.data(), frames); for (size_t f = 0; f < frames; ++f) { - buf[f * this->channels()] = tmp[f * s0->channels()]; + buf[f * this->channels()] = convert_sample(tmp[f * s0->channels()]); for (size_t ch = 1; ch < this->channels(); ++ch) { size_t ch0 = std::max(size_t(0), s0->channels() - (this->channels() - ch));