Validate the container's structure and output configuration.
Throws if configuration is invalid.
72{
75 "ContiguousAccessProcessor validation: Container has no data elements");
76 }
77
80 std::source_location::current(),
81 "Audio output shape must be [frames, channels]");
82 }
83
87
88 if (frames_requested == 0 || channels_requested == 0) {
90 std::source_location::current(),
91 "Frame and channel counts cannot be zero");
92 }
93
96 std::source_location::current(),
97 "Requested {} frames exceeds available {} samples per channel",
98 frames_requested,
100 }
101
102 if (channels_requested > available_channels) {
104 std::source_location::current(),
105 "Requested {} channels exceeds available {} channels",
106 channels_requested,
107 available_channels);
108 }
109
112 "Current position size {} doesn't match available channel count {}, resetting positions",
114 available_channels);
116 }
117
119 "ContiguousAccessProcessor validated: memory layout {}, processing {}×{} blocks, current positions for {} channels",
121 frames_requested,
123}
#define MF_INFO(comp, ctx,...)
#define MF_ERROR(comp, ctx,...)
#define MF_WARN(comp, ctx,...)
std::vector< uint64_t > m_output_shape
uint64_t m_total_elements
ContainerDataStructure m_structure
std::vector< uint64_t > m_current_position
@ ContainerProcessing
Container operations (Kakshya - file/stream/region processing)
@ Kakshya
Containers[Signalsource, Stream, File], Regions, DataProcessors.
@ INTERLEAVED
Single DataVariant with interleaved data (LRLRLR for stereo)
static uint64_t get_channel_count(const std::vector< DataDimension > &dimensions)
Extract channel count from dimensions.
OrganizationStrategy organization
static uint64_t get_samples_count_per_channel(const std::vector< DataDimension > &dimensions)
Get samples per channel (time dimension only).