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

◆ play() [2/2]

void MayaFlux::Kriya::SamplingPipeline::play ( size_t  index = 0)

Activate a voice, resetting its cursor to loop_start.

Parameters
indexVoice index.

Definition at line 116 of file SamplingPipeline.cpp.

117{
118 if (index >= m_processor->slot_count()) {
120 "SamplingPipeline::play index {} exceeds slot count {}", index, m_processor->slot_count());
121 return;
122 }
123
124 m_processor->load(index, m_processor->slice(index));
125 m_processor->bind(index);
126}
#define MF_RT_ERROR(comp, ctx,...)
std::shared_ptr< Buffers::StreamSliceProcessor > m_processor
@ Configuration
Configuration and parameter updates.
@ Kriya
Automatable tasks and fluent scheduling api for Nodes and Buffers.

References MayaFlux::Journal::Configuration, MayaFlux::Journal::Kriya, m_processor, and MF_RT_ERROR.