Ψ-W2-T1 remediation: scrim the card name over the waveform, hedge two SDK claims, fix a UTF-8-truncation empty-label bug, file the legibility DAW deferral
This commit is contained in:
@@ -58,10 +58,13 @@ bool resolveRange(double& start, double& end, std::string& why);
|
||||
// Collects the selected tracks (Track scope) into out.sourceTracks + GUIDs + names.
|
||||
bool collectSelectedTracks(ResolvedSource& out);
|
||||
|
||||
// The track's display name, read-only. GetTrackName (SDK header ~3626) is used rather
|
||||
// than P_NAME because it already answers REAPER's own convention for an unnamed track
|
||||
// ("Track N"), which is exactly the deterministic fallback a capture label wants; P_NAME
|
||||
// would hand back an empty string instead. Empty only if the read itself fails.
|
||||
// The track's display name. GetTrackName (SDK header ~3626) is used rather than P_NAME
|
||||
// because it already answers REAPER's own convention for an unnamed track ("Track N"),
|
||||
// which is exactly the deterministic fallback a capture label wants; P_NAME would hand
|
||||
// back an empty string instead. `[verify]` the SDK header states neither that the read is
|
||||
// non-mutating nor what a `false` return means; the call site treats it as read-only and
|
||||
// treats `false` (or a `true` with an untouched buffer) the same way — an empty name, which
|
||||
// falls through to the scope literal fallback either way, so both readings are safe.
|
||||
// Callers that build a ResolvedSource by hand (batch capture) use this directly.
|
||||
std::string trackName(MediaTrack* tr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user