mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 07:43:54 +02:00
Zero and return false for all failures to read block file summary...
... Though in the only place where these summaries are used, which is Sequence::GetWaveDisplay, we ignore the correctly reported error code anyway. Also RAII in management of relevant memory buffers and mutexes.
This commit is contained in:
@@ -181,7 +181,7 @@ class PROFILE_DLL_API BlockFile /* not final, abstract */ {
|
||||
float *summary256, float *summary64K);
|
||||
|
||||
/// Read the summary section of the file. Derived classes implement.
|
||||
virtual bool ReadSummary(void *data) = 0;
|
||||
virtual bool ReadSummary(ArrayOf<char> &data) = 0;
|
||||
|
||||
/// Byte-swap the summary data, in case it was saved by a system
|
||||
/// on a different platform
|
||||
@@ -251,7 +251,7 @@ class AliasBlockFile /* not final */ : public BlockFile
|
||||
/// Write the summary to disk, using the derived ReadData() to get the data
|
||||
virtual void WriteSummary();
|
||||
/// Read the summary into a buffer
|
||||
bool ReadSummary(void *data) override;
|
||||
bool ReadSummary(ArrayOf<char> &data) override;
|
||||
|
||||
wxFileNameWrapper mAliasedFileName;
|
||||
sampleCount mAliasStart;
|
||||
|
||||
Reference in New Issue
Block a user