mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-13 15:17:42 +02:00
fix for P2 http://bugzilla.audacityteam.org/show_bug.cgi?id=641, I hope
This commit is contained in:
parent
36361a6b86
commit
0726da24f2
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user