Skip to content

Commit

Permalink
Merge pull request #1431 from profelis/master
Browse files Browse the repository at this point in the history
Fix audio resampling to use source channel count for resizing
  • Loading branch information
borisbat authored Dec 11, 2024
2 parents da3d78f + 64887e0 commit 7c69126
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 7c69126

Please sign in to comment.