fix(review): dead silenceFlags store removed; channelModeFor extracted + tested; auto-default + drop comments corrected; v9 constant minted
This commit is contained in:
@@ -26,10 +26,11 @@ int b64Value(unsigned char c) {
|
||||
|
||||
std::vector<std::uint8_t> instrumentDropStateBytes(const std::string& sampleId) {
|
||||
// The ONE fact the drop carries: this capture is the instance's selection. Everything
|
||||
// else stays at the fresh-instance defaults (no zones, mono, generation 0) — the same
|
||||
// ComponentState a browser click would produce. serializeComponentState is the
|
||||
// instrument's own writer (the single source of truth for the byte layout), so this is
|
||||
// NOT a parallel encoder — it IS the instrument's encoder.
|
||||
// else stays at the fresh-instance defaults (no zones, implicit channel mode, generation
|
||||
// 0) — the same ComponentState a browser click would produce. The implicit mode means
|
||||
// the GA auto-default will follow the loaded capture's channel count on first reload.
|
||||
// serializeComponentState is the instrument's own writer (the single source of truth for
|
||||
// the byte layout), so this is NOT a parallel encoder — it IS the instrument's encoder.
|
||||
ComponentState cs;
|
||||
cs.selectionId = sampleId;
|
||||
return serializeComponentState(cs);
|
||||
|
||||
Reference in New Issue
Block a user