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

◆ audio_span()

static Region MayaFlux::Kakshya::Region::audio_span ( uint64_t  start_frame,
uint64_t  end_frame,
uint32_t  start_channel,
uint32_t  end_channel,
const std::string &  label = "" 
)
inlinestatic

Create a Region representing a span in audio (frames and channels).

Parameters
start_frameStart frame index (inclusive).
end_frameEnd frame index (inclusive).
start_channelStart channel index (inclusive).
end_channelEnd channel index (inclusive).
labelOptional label for this region.
Returns
Region covering the specified audio region.

Definition at line 182 of file Region.hpp.

187 {
188 std::unordered_map<std::string, std::any> attrs;
189 if (!label.empty())
190 attrs["label"] = label;
191 attrs["type"] = "audio_region";
192 return Region({ start_frame, start_channel },
193 { end_frame, end_channel }, attrs);
194 }

Referenced by MayaFlux::Kakshya::StreamSlice::from_frame_range(), MayaFlux::Kakshya::StreamSlice::from_region(), and MayaFlux::Kakshya::StreamSlice::from_stream().

+ Here is the caller graph for this function: