1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-19 15:44:20 +01:00

Bug 1806 - Extreme negative settings in Change Tempo cause an "apparent" hang/freeze

This commit is contained in:
Leland Lucius
2021-01-30 04:56:53 -06:00
parent 754838844d
commit 7aa26482eb

View File

@@ -213,8 +213,8 @@ bool EffectSoundTouch::ProcessOne(WaveTrack *track,
auto s = start;
while (s < end) {
//Get a block of samples (smaller than the size of the buffer)
const auto block =
limitSampleBufferSize( track->GetBestBlockSize(s), end - s );
const auto block = wxMin(8192,
limitSampleBufferSize( track->GetBestBlockSize(s), end - s ));
//Get the samples from the track and put them in the buffer
track->Get((samplePtr)buffer.get(), floatSample, s, block);