1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 09:01:12 +01:00

Bug2532: should preserve sharing of sample blocks when importing AUP (#651)

This commit is contained in:
Paul Licameli
2020-08-30 18:18:18 -04:00
committed by GitHub
parent c17b804750
commit 7294f7a8e0
5 changed files with 93 additions and 15 deletions

View File

@@ -1202,6 +1202,19 @@ void WaveClip::GetDisplayRect(wxRect* r)
*r = mDisplayRect;
}
/*! @excsafety{Strong} */
std::shared_ptr<SampleBlock> WaveClip::AppendNewBlock(
samplePtr buffer, sampleFormat format, size_t len)
{
return mSequence->AppendNewBlock( buffer, format, len );
}
/*! @excsafety{Strong} */
void WaveClip::AppendSharedBlock(const std::shared_ptr<SampleBlock> &pBlock)
{
mSequence->AppendSharedBlock( pBlock );
}
/*! @excsafety{Partial}
-- Some prefix (maybe none) of the buffer is appended,
and no content already flushed to disk is lost. */