1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-06 19:52:19 +01:00

More uses of SampleBuffer, eliminating explicit DeleteSamples calls

This commit is contained in:
Paul Licameli
2016-02-01 10:16:00 -05:00
parent 508286661a
commit 321d5259a2
22 changed files with 145 additions and 156 deletions

View File

@@ -308,7 +308,7 @@ int ODDecodeBlockFile::WriteODDecodeBlockFile()
// To build the summary data, call ReadData (implemented by the
// derived classes) to get the sample data
samplePtr sampleData;// = NewSamples(mLen, floatSample);
SampleBuffer sampleData;// = NewSamples(mLen, floatSample);
int ret;
//use the decoder here.
mDecoderMutex.Lock();
@@ -334,7 +334,7 @@ int ODDecodeBlockFile::WriteODDecodeBlockFile()
//TODO: we may need to write a version of WriteSimpleBlockFile that uses threadsafe FILE vs wxFile
bool bSuccess =
WriteSimpleBlockFile(
sampleData,
sampleData.ptr(),
mLen,
mFormat,
NULL);//summaryData);
@@ -342,7 +342,6 @@ int ODDecodeBlockFile::WriteODDecodeBlockFile()
mFileNameMutex.Unlock();
DeleteSamples(sampleData);
// delete [] (char *) summaryData;