Q-W3 review follow-ups: golden hash literal test, CLAUDE.md wav_codec bullet, dead RecordedCapture field comment, makeUniqueTag residual note
This commit is contained in:
@@ -239,6 +239,12 @@ std::string makeUniqueTag(const std::string& prefix) {
|
||||
// session distinct regardless of timing. NOTE: the tag varies the file NAME,
|
||||
// not the audio bytes — bit-identical-repeat is about identical *content* for
|
||||
// identical requests; two deliberate captures naturally live in two files.
|
||||
// RESIDUAL (Q-W3 review follow-up): the counter is per-process, starting over
|
||||
// at 0 on every REAPER launch/extension reload, so two separate REAPER
|
||||
// instances (or a reload mid-session) can still mint the same timestamp+counter
|
||||
// pair in the same wall-clock second — a same-second cross-process collision
|
||||
// remains theoretically possible. Scoped to per-session deliberately: this fix
|
||||
// targets the reachable-in-practice single-process batch-capture case above.
|
||||
static std::atomic<unsigned long long> counter{0};
|
||||
const std::time_t now = std::time(nullptr);
|
||||
return prefix + std::to_string(static_cast<long long>(now)) + "-" +
|
||||
|
||||
Reference in New Issue
Block a user