1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-03 01:19:24 +02:00

more detail in comment

This commit is contained in:
v.audacity 2012-07-22 02:39:54 +00:00
parent a7a6c2b557
commit 644d0b5355

View File

@ -1764,8 +1764,9 @@ void WaveTrack::GetEnvelopeValues(double *buffer, int bufferLen,
// This check prevents problem cited in http://bugzilla.audacityteam.org/show_bug.cgi?id=528#c11,
// Gale's cross_fade_out project, which was already corrupted by bug 528.
//vvvvv Should really be checked earlier, in reading the project, but that needs much more debugging, and
// this prevents the previous write past the buffer end, in clip->GetEnvelope() call.
//vvv Should really be checked earlier, in reading the project, and/or determining bufferLen
// passed in. But that needs much more debugging, and this conditional prevents the previous
// write past the buffer end, in clip->GetEnvelope() call.
if (nClipLen < rlen)
rlen = nClipLen;
}