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

◆ play() [1/2]

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

Load a slice into a voice slot and activate it immediately.

Equivalent to load(index, slice) followed by play(index). Requires build() to have been called first.

Parameters
indexVoice index.
sliceStreamSlice to load and activate.

Definition at line 128 of file SamplingPipeline.cpp.

129{
130 m_processor->load(index, std::move(slice));
131 if (!m_built) {
132 build();
133 }
134
135 m_processor->bind(index);
136}
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(), m_built, m_processor, and slice().

+ Here is the call graph for this function: