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

◆ from_stream()

static StreamSlice MayaFlux::Kakshya::StreamSlice::from_stream ( std::shared_ptr< DynamicSoundStream >  stream,
uint8_t  index = 0 
)
inlinestatic

Construct a slice spanning the full stream across all channels.

Parameters
streamSource stream.
indexSlot identity.

Definition at line 62 of file StreamSlice.hpp.

65 {
66 const uint64_t end_frame = stream->get_num_frames() > 0
67 ? stream->get_num_frames() - 1
68 : 0;
69 const uint64_t end_channel = stream->get_num_channels() > 0
70 ? stream->get_num_channels() - 1
71 : 0;
72 return StreamSlice {
73 .stream = std::move(stream),
75 .index = index,
76 };
77 }
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:182
std::shared_ptr< DynamicSoundStream > stream

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

+ Here is the call graph for this function: