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

◆ play_continuous() [1/2]

void MayaFlux::Kriya::SamplingPipeline::play_continuous ( size_t  index,
Kakshya::StreamSlice  slice 
)

Load a slice into a voice slot and activate it with looping enabled.

Sets looping on the slice before loading. Equivalent to setting slice.looping = true, calling load(index, slice), then play_continuous(index). Requires build() to have been called first.

Parameters
indexVoice index.
sliceStreamSlice to load and activate with looping.

Definition at line 152 of file SamplingPipeline.cpp.

153{
154 slice.looping = true;
155 m_processor->load(index, std::move(slice));
156
157 if (!m_built) {
158 build();
159 }
160
161 m_processor->bind(index);
162}
Kakshya::StreamSlice & slice(size_t index)
Direct access to a voice's StreamSlice for configuration.
void build()
Finalize configuration and start processing.
std::shared_ptr< Buffers::StreamSliceProcessor > m_processor

References build(), MayaFlux::Kakshya::StreamSlice::looping, m_built, m_processor, and slice().

+ Here is the call graph for this function: