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

Bug1655: Sequence inconsistency in cut or copy...

... I didn't figure out why reproducibility seemed to vary after startup
or on Linux or in Release build, but I am satisfied a real mistake is fixed
here.
This commit is contained in:
Paul Licameli 2017-06-24 12:34:36 -04:00
parent 21b429e2b5
commit a0a6d33b4b

View File

@ -1575,7 +1575,7 @@ void Sequence::Append(samplePtr buffer, sampleFormat format,
// shouldn't throw, because XMLWriter is not XMLFileWriter
static_cast< SimpleBlockFile * >( &*pFile )->SaveXML( *blockFileLog );
newBlock.push_back(SeqBlock(pFile, mNumSamples));
newBlock.push_back(SeqBlock(pFile, newNumSamples));
buffer += addedLen * SAMPLE_SIZE(format);
newNumSamples += addedLen;