Skip to content

Commit

Permalink
fix(amac): Resampler initialization.
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Nana <[email protected]>
  • Loading branch information
na2axl committed Aug 25, 2024
1 parent 4077a1f commit aba5c97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/amac/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ static int process(const AmOsString& inFileName, const AmOsString& outFileName,

if (state.resampling.enabled)
{
const auto resampler = Resampler::Construct("default");
auto* resampler = Resampler::Construct("default");
resampler->Initialize(numChannels, sampleRate, state.resampling.targetSampleRate);

AmUInt64 f = resampler->GetExpectedOutputFrames(numSamples);
AudioBuffer output(f, numChannels);
Expand Down

0 comments on commit aba5c97

Please sign in to comment.