MayaFlux 0.1.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 156 of file Region.hpp.

159 {
160 std::unordered_map<std::string, std::any> attrs;
161 if (!label.empty())
162 attrs["label"] = label;
163 attrs["type"] = "audio_point";
164 return Region({ frame, channel }, attrs);
165 }