1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-16 08:34:10 +02:00

Remove spurious ASSERT, Sequence::GetMinMax iterates over each of the blocks that go to make up the len.

This commit is contained in:
martynshaw99 2011-11-07 00:01:30 +00:00
parent 3af0e440e6
commit 8adac0ed64

View File

@ -188,8 +188,6 @@ bool Sequence::ConvertToSampleFormat(sampleFormat format)
bool Sequence::GetMinMax(sampleCount start, sampleCount len,
float * outMin, float * outMax) const
{
wxASSERT(len <= mMaxSamples); // Vaughan, 2011-10-19
if (len == 0 || mBlock->Count() == 0) {
*outMin = float(0.0);
*outMax = float(0.0);