Skip to content

Commit 8bcb3dc

Browse files
author
Guillaume Piolat
committed
Fix bugs after automated review
1 parent a029541 commit 8bcb3dc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

fft/dplug/fft/convolver.d

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ nothrow @nogc:
5959

6060

6161
/**
62-
Process samples and return the convolved output.
62+
Load the impulse reponse.
63+
Changing the impulse response doesn't necessitate to call
64+
`.initialize`, however it will click.
6365
6466
MUST be called before processing samples.
6567
MUST be called whenever `.initialize` was called.
@@ -147,6 +149,7 @@ nothrow @nogc:
147149
}
148150
_blockConv.reallocBuffer(0);
149151
_tempBuf.reallocBuffer(0);
152+
_tempBuf2.reallocBuffer(0);
150153
}
151154

152155
private:
@@ -238,7 +241,7 @@ private:
238241
// Clear previous plan, if any
239242
_plan.clearContents();
240243

241-
sizeOfDelayline = NaiveConvolver.delayLineNeeded(N, _maxFrames);
244+
sizeOfDelayline = NaiveConvolver.delayLineNeeded(MIN_BLOCK_SIZE, _maxFrames);
242245
maxUsedBlockSize = 0;
243246
directConvArea = MIN_BLOCK_SIZE;
244247
if (directConvArea >= N)

0 commit comments

Comments
 (0)