1
0
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:
mchinen 2011-03-06 21:16:32 +00:00
parent b1e5b022a8
commit ee726b3f28

View File

@ -377,7 +377,7 @@ void EffectNoiseRemoval::Initialize()
mHistoryLen = (2 * mAttackDecayBlocks) - 1; mHistoryLen = (2 * mAttackDecayBlocks) - 1;
if (mHistoryLen < mMinSignalBlocks) if (mHistoryLen < mMinSignalBlocks)
mHistoryLen++; mHistoryLen = mMinSignalBlocks;
mSpectrums = new float*[mHistoryLen]; mSpectrums = new float*[mHistoryLen];
mGains = new float*[mHistoryLen]; mGains = new float*[mHistoryLen];