1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-13 15:17:42 +02:00
This commit is contained in:
v.audacity 2013-07-18 04:18:59 +00:00
parent 36361a6b86
commit 0726da24f2

View File

@ -1863,6 +1863,8 @@ void WaveTrack::GetEnvelopeValues(double *buffer, int bufferLen,
{
double* rbuf = buffer;
int rlen = bufferLen;
if (rlen <= 0)
return; // loop completion
double rt0 = t0;
if (rt0 < dClipStartTime)
@ -1883,6 +1885,8 @@ void WaveTrack::GetEnvelopeValues(double *buffer, int bufferLen,
if (nClipLen < rlen) // Never increase rlen here.
rlen = nClipLen;
}
if (rlen <= 0)
return; // shortgap fix for http://bugzilla.audacityteam.org/show_bug.cgi?id=641
clip->GetEnvelope()->GetValues(rbuf, rlen, rt0, tstep);
}
}