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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user