mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-04 14:19:30 +02:00
bug 304 - fixes the crash on low attack times for high sample rate. review shows that this will only change the behavior for attack times lower than 0.05.\nThere are other parts of the code that may need tiding up (such as using the project sample rate when processing tracks of other sample rates), but this is unrelated to the bug and the patch.\npatch submitted by Ed Musgrove
This commit is contained in:
parent
b1e5b022a8
commit
ee726b3f28
@ -377,7 +377,7 @@ void EffectNoiseRemoval::Initialize()
|
||||
mHistoryLen = (2 * mAttackDecayBlocks) - 1;
|
||||
|
||||
if (mHistoryLen < mMinSignalBlocks)
|
||||
mHistoryLen++;
|
||||
mHistoryLen = mMinSignalBlocks;
|
||||
|
||||
mSpectrums = new float*[mHistoryLen];
|
||||
mGains = new float*[mHistoryLen];
|
||||
|
Loading…
x
Reference in New Issue
Block a user