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

◆ from_region()

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

Construct a slice spanning a frame and channel sub-region.

Parameters
streamSource stream.
start_frameInclusive start frame.
end_frameInclusive end frame.
start_channelInclusive start channel.
end_channelInclusive end channel.
indexSlot identity.

Definition at line 93 of file StreamSlice.hpp.

100 {
101 return StreamSlice {
102 .stream = std::move(stream),
104 .index = index,
105 };
106 }
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_channel(), start_frame(), and stream.

+ Here is the call graph for this function: