40 std::array<char, kSampleHeritageMaximumProfileIdBytes + 1>
profile_id{};
43 std::array<SampleHeritageRuntimeRngState, kSampleHeritageMaximumStages>
50 static_cast<std::size_t
>(std::distance(
profile_id.begin(), end))};
55 std::array<SampleHeritageRuntimeRngState, kSampleHeritageMaximumStages>
73 std::array<char, kSampleHeritageMaximumProfileIdBytes + 1>
profile_id{};
82 for (std::size_t index = 0; index <
voice_states.size(); ++index)
83 voice_states[index].slot_index =
static_cast<std::uint8_t
>(index);
89 static_cast<std::size_t
>(std::distance(
profile_id.begin(), end))};
93static_assert(std::is_trivially_copyable_v<SampleHeritageTypedRuntimeState>);
Definition analyzer_provider.hpp:12
SampleHeritageRuntimeRngStageType
Definition sample_heritage_runtime_state.hpp:18
@ LiveCyclic
Definition sample_heritage_runtime_state.hpp:21
@ Quantization
Definition sample_heritage_runtime_state.hpp:19
@ ProfileMismatch
Definition sample_heritage_record_commit.hpp:26
SampleHeritageRuntimeStateStatus
Definition sample_heritage_runtime_state.hpp:95
@ NotPrepared
Definition sample_heritage_runtime_state.hpp:97
@ InvalidRandomState
Definition sample_heritage_runtime_state.hpp:101
@ InvalidHostSampleRate
Definition sample_heritage_runtime_state.hpp:103
@ Ok
Definition sample_heritage_runtime_state.hpp:96
@ InvalidStageLayout
Definition sample_heritage_runtime_state.hpp:100
@ UnsupportedSchemaVersion
Definition sample_heritage_runtime_state.hpp:98
@ InvalidSlotLayout
Definition sample_heritage_runtime_state.hpp:102
@ NotPrepared
Definition sample_heritage_bus_dsp.hpp:21
@ Ok
Definition loop_types.hpp:34
constexpr std::size_t kSampleHeritageRuntimeVoiceSlots
Definition sample_heritage_runtime_state.hpp:16
constexpr std::uint32_t kSampleHeritageProfileDigestVersion
Definition sample_heritage_schema.hpp:19
constexpr std::uint32_t kSampleHeritageTypedRuntimeStateSchemaVersion
Definition sample_heritage_runtime_state.hpp:15
constexpr std::uint32_t kSampleHeritageRuntimeStateSchemaVersion
Definition sample_heritage_runtime_state.hpp:14
@ Noise
Definition analyzer_provider.hpp:189
Definition sample_heritage_runtime_state.hpp:54
std::size_t rng_state_count
Definition sample_heritage_runtime_state.hpp:57
std::array< SampleHeritageRuntimeRngState, kSampleHeritageMaximumStages > rng_states
Definition sample_heritage_runtime_state.hpp:56
Definition sample_heritage_runtime_state.hpp:24
std::uint8_t stage_index
Definition sample_heritage_runtime_state.hpp:25
std::uint64_t random_state
Definition sample_heritage_runtime_state.hpp:28
SampleHeritageRuntimeRngStageType stage_type
Definition sample_heritage_runtime_state.hpp:26
Definition sample_heritage_runtime_state.hpp:106
SampleHeritageRuntimeStateStatus status
Definition sample_heritage_runtime_state.hpp:107
SampleHeritageRuntimeState state
Definition sample_heritage_runtime_state.hpp:109
bool valid() const noexcept
Definition sample_heritage_runtime_state.hpp:111
Fixed-capacity continuation payload for seeded stages.
Definition sample_heritage_runtime_state.hpp:37
std::array< SampleHeritageRuntimeRngState, kSampleHeritageMaximumStages > rng_states
Definition sample_heritage_runtime_state.hpp:44
std::uint32_t profile_digest_version
Definition sample_heritage_runtime_state.hpp:41
std::uint32_t profile_schema_version
Definition sample_heritage_runtime_state.hpp:39
std::array< char, kSampleHeritageMaximumProfileIdBytes+1 > profile_id
Definition sample_heritage_runtime_state.hpp:40
std::size_t rng_state_count
Definition sample_heritage_runtime_state.hpp:45
std::uint32_t schema_version
Definition sample_heritage_runtime_state.hpp:38
std::array< std::uint8_t, 32 > profile_digest
Definition sample_heritage_runtime_state.hpp:42
std::string_view bound_profile_id() const noexcept
Definition sample_heritage_runtime_state.hpp:47
Definition sample_heritage_runtime_state.hpp:116
SampleHeritageRuntimeStateStatus status
Definition sample_heritage_runtime_state.hpp:117
bool valid() const noexcept
Definition sample_heritage_runtime_state.hpp:121
SampleHeritageTypedRuntimeState state
Definition sample_heritage_runtime_state.hpp:119
Fixed-capacity continuation envelope for the typed sampler topology.
Definition sample_heritage_runtime_state.hpp:69
std::uint32_t profile_digest_version
Definition sample_heritage_runtime_state.hpp:74
std::uint32_t schema_version
Definition sample_heritage_runtime_state.hpp:70
std::array< SampleHeritageVoiceRuntimeState, kSampleHeritageRuntimeVoiceSlots > voice_states
Definition sample_heritage_runtime_state.hpp:78
std::array< std::uint8_t, 32 > profile_digest
Definition sample_heritage_runtime_state.hpp:75
constexpr SampleHeritageTypedRuntimeState() noexcept
Definition sample_heritage_runtime_state.hpp:81
std::array< char, kSampleHeritageMaximumProfileIdBytes+1 > profile_id
Definition sample_heritage_runtime_state.hpp:73
std::string_view bound_profile_id() const noexcept
Definition sample_heritage_runtime_state.hpp:86
SampleHeritageRuntimeEngineState bus_state
Definition sample_heritage_runtime_state.hpp:79
std::uint32_t profile_schema_version
Definition sample_heritage_runtime_state.hpp:72
double host_sample_rate
Definition sample_heritage_runtime_state.hpp:76
Definition sample_heritage_runtime_state.hpp:60
std::uint8_t slot_index
Definition sample_heritage_runtime_state.hpp:61
SampleHeritageRuntimeEngineState engine
Definition sample_heritage_runtime_state.hpp:62