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

◆ from_frame_range()

static StreamSlice MayaFlux::Kakshya::StreamSlice::from_frame_range ( std::shared_ptr< DynamicSoundStream stream,
uint64_t  start_frame,
uint64_t  end_frame,
uint8_t  index = 0 
)
inlinestatic

Construct a slice spanning a frame sub-region across all channels.

Parameters
streamSource stream.
start_frameInclusive start frame.
end_frameInclusive end frame.
indexSlot identity.

Definition at line 68 of file StreamSlice.hpp.

73 {
74 const uint64_t end_channel = stream->get_num_channels() > 0
75 ? stream->get_num_channels() - 1
76 : 0;
77 return StreamSlice {
78 .stream = std::move(stream),
80 .index = index,
81 };
82 }
static Region audio_span(uint64_t start_frame, uint64_t end_frame, uint32_t start_channel, uint32_t end_channel, const std::string &label="")
Create a Region representing a span in audio (frames and channels).
Definition Region.hpp:176
std::shared_ptr< DynamicSoundStream > stream

References MayaFlux::Kakshya::Region::audio_span(), end_channel(), end_frame(), index, start_frame(), and stream.

+ Here is the call graph for this function: