Skip to content

Commit

Permalink
Fix audio resampling to use source channel count for resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
profelis committed Dec 10, 2024
1 parent da3d78f commit 64887e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dasAudio/audio/audio_boost.das
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class AudioChannel
if inputFrames != outputFrames
// resample
var temp : array<float>
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)),
Expand Down

0 comments on commit 64887e0

Please sign in to comment.