From 64887e0850e5d08640b011355a4e5dd4a3a2d228 Mon Sep 17 00:00:00 2001 From: Dima Granetchi Date: Tue, 10 Dec 2024 21:39:54 +0200 Subject: [PATCH] Fix audio resampling to use source channel count for resizing --- modules/dasAudio/audio/audio_boost.das | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dasAudio/audio/audio_boost.das b/modules/dasAudio/audio/audio_boost.das index 1394d503e..2e64a0c8c 100644 --- a/modules/dasAudio/audio/audio_boost.das +++ b/modules/dasAudio/audio/audio_boost.das @@ -194,7 +194,7 @@ class AudioChannel if inputFrames != outputFrames // resample var temp : array - temp |> resize(int(outputFrames) * channels) + temp |> resize(int(outputFrames) * source.channels) ma_resampler_process_pcm_frames(unsafe(addr(resampler)), unsafe(addr(samples[0])), unsafe(addr(inputFrames)),