28 std::shared_ptr<DynamicSoundStream>
stream;
45 std::shared_ptr<DynamicSoundStream>
stream,
49 ?
stream->get_num_frames() - 1
52 ?
stream->get_num_channels() - 1
69 std::shared_ptr<DynamicSoundStream>
stream,
75 ?
stream->get_num_channels() - 1
94 std::shared_ptr<DynamicSoundStream>
stream,
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).
std::vector< uint64_t > end_coordinates
Ending frame index (inclusive)
std::vector< uint64_t > start_coordinates
Starting frame index (inclusive)
Represents a point or span in N-dimensional space.
uint32_t start_channel() const
uint64_t start_frame() const
static 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)
Construct a slice spanning a frame and channel sub-region.
std::shared_ptr< DynamicSoundStream > stream
static StreamSlice from_frame_range(std::shared_ptr< DynamicSoundStream > stream, uint64_t start_frame, uint64_t end_frame, uint8_t index=0)
Construct a slice spanning a frame sub-region across all channels.
StreamSlice & with_looping(bool l)
StreamSlice & with_scale(double s)
StreamSlice & with_speed(double s)
uint64_t end_frame() const
uint32_t end_channel() const
static StreamSlice from_stream(std::shared_ptr< DynamicSoundStream > stream, uint8_t index=0)
Construct a slice spanning the full stream across all channels.
StreamSlice & with_loop_count(size_t n)
A bounded region of a DynamicSoundStream with associated playback parameters.