69std::optional<ReproducibilityClass>
std::optional< ReproducibilityClass > reproducibility_class_from_name(std::string_view name) noexcept
Parses a canonical reproducibility-class name and rejects unknown names.
bool is_bit_reproducible(ReproducibilityClass reproducibility) noexcept
True when a second render is entitled to claim bit-equality with the first.
std::string_view production_mode_name(ProductionMode mode) noexcept
Canonical wire name, stable across builds and safe to persist.
constexpr std::uint64_t kMaxProductionLookaheadMs
Upper bound on a declared lookahead.
Definition production_mode.hpp:85
std::string_view reproducibility_class_name(ReproducibilityClass reproducibility) noexcept
Canonical persisted name for a reproducibility class.
ReproducibilityClass
What a second render of the same document may claim about the first.
Definition production_mode.hpp:45
std::uint8_t replay_strength(ReproducibilityClass reproducibility) noexcept
Replay strength, ascending: BestEffort < Tolerance < Materialized < Deterministic.
ProductionMode
Where content is produced relative to the audio callback that consumes it.
Definition production_mode.hpp:33
ProductionDeclarationErrorCode validate_production_declaration(const ProductionDeclaration &declaration) noexcept
Validate a declaration. Returns None when the declaration is coherent.
std::optional< ProductionMode > production_mode_from_name(std::string_view name) noexcept
Parse a canonical wire name.
ReproducibilityClass weakest(ReproducibilityClass left, ReproducibilityClass right) noexcept
The weaker of two claims — the only correct way to aggregate a render that spans several classes.
ProductionDeclarationErrorCode
Validation result for a ProductionDeclaration.
Definition production_mode.hpp:97
@ Materialized
Bit-exact against a pinned, content-hashed artifact rather than against the producer.
Definition production_mode.hpp:53
@ Tolerance
Reproducible only within a declared numeric tolerance — a different device, driver,...
Definition production_mode.hpp:50
@ BestEffort
No replay guarantee.
Definition production_mode.hpp:56
@ Deterministic
Bit-exact from the document and its declared inputs alone.
Definition production_mode.hpp:47
@ Synchronous
Produced in band, inside the callback that consumes it. Cannot starve.
Definition production_mode.hpp:35
@ Buffered
Produced ahead of the playhead on another thread and consumed through a ring.
Definition production_mode.hpp:38
@ None
Definition clip.hpp:176
@ BufferedDeclaresNoLookahead
A buffered producer with no lookahead is a synchronous producer that can starve — the category error ...
Definition production_mode.hpp:103
@ SynchronousDeclaresLookahead
Synchronous content produces in band, so a lookahead is meaningless.
Definition production_mode.hpp:100
@ LookaheadExceedsLimit
Definition production_mode.hpp:104
Definition program_compiler.hpp:18
What a piece of content declares about its own production.
Definition production_mode.hpp:88
std::uint64_t lookahead_ms
Wall-clock milliseconds a producer is given to work ahead of the playhead.
Definition production_mode.hpp:93
ReproducibilityClass reproducibility
Definition production_mode.hpp:90
ProductionMode mode
Definition production_mode.hpp:89