Restore the bank fold and usage publish to the resume path, guard setActive against repeats, and make the meter fold's bound literal
The resume also hands back to a full reload when the fold moves the loaded capture's decode source, so the refs table and the audio cannot skew.
This commit is contained in:
@@ -85,6 +85,13 @@ std::vector<std::string> referencedSampleIds(const std::string& selectionId);
|
||||
void refreshRefsFromBank(SampleRefs& refs, const std::string& banksJson,
|
||||
const std::vector<std::string>& ids);
|
||||
|
||||
// True when two refs would build the same SampleData: path plus every intrinsic
|
||||
// resolveCapture folds. displayName is excluded on purpose — it is a label, never a decode
|
||||
// input. Exists so a caller holding an ALREADY-DECODED sample can ask whether a refresh moved
|
||||
// what that sample was decoded from; comparing the fields at the call site instead would go
|
||||
// stale the first time this struct gains one.
|
||||
bool sameDecodeSource(const SelectedSample& a, const SelectedSample& b);
|
||||
|
||||
// Legacy-lift terminating decision: can a refs lift make progress against this bank blob
|
||||
// for the ids the instance references?
|
||||
// * Retry — blob absent/empty/unparseable: not readable yet, keep retrying.
|
||||
|
||||
Reference in New Issue
Block a user