MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ audio_point()

static Region MayaFlux::Kakshya::Region::audio_point ( uint64_t  frame,
uint32_t  channel,
const std::string &  label = "" 
)
inlinestatic

Create a Region for a single audio sample/channel location.

Parameters
frameThe frame index (time).
channelThe channel index.
labelOptional label for this region.
Returns
Region at the specified frame/channel.

Definition at line 162 of file Region.hpp.

165 {
166 std::unordered_map<std::string, std::any> attrs;
167 if (!label.empty())
168 attrs["label"] = label;
169 attrs["type"] = "audio_point";
170 return Region({ frame, channel }, attrs);
171 }