1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Do orphan block checking differently... (#655)

... Don't have special knowledge of "blockid" in ProjectSerializer, which should
be very low-level.

Instead, we can deserialize the project first, and use the block ids collected
by the sample block factory since f137a1e.
This commit is contained in:
Paul Licameli
2020-09-01 11:54:36 -04:00
committed by GitHub
parent 1e3885730f
commit 92d7ee38e5
5 changed files with 39 additions and 30 deletions

View File

@@ -22,9 +22,6 @@
// From SampleBlock.h
using SampleBlockID = long long;
// From ProjectFileiIO.h
using BlockIDs = std::unordered_set<SampleBlockID>;
///
/// ProjectSerializer
///
@@ -69,7 +66,7 @@ public:
bool DictChanged() const;
// Returns empty string if decoding fails
static wxString Decode(const wxMemoryBuffer &buffer, BlockIDs &blockids);
static wxString Decode(const wxMemoryBuffer &buffer);
private:
void WriteName(const wxString & name);