mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-31 07:59:27 +02:00
Bug 1806 - Extreme negative settings in Change Tempo cause an "apparent" hang/freeze
This commit is contained in:
parent
754838844d
commit
7aa26482eb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user