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

◆ play_continuous() [2/2]

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

Activate a voice with looping enabled.

Parameters
indexVoice index.

Definition at line 138 of file SamplingPipeline.cpp.

139{
140 if (index >= m_processor->slot_count()) {
142 "SamplingPipeline::play_continuous index {} exceeds slot count {}", index, m_processor->slot_count());
143 return;
144 }
145
146 auto sl = m_processor->slice(index);
147 sl.looping = true;
148 m_processor->load(index, sl);
149 m_processor->bind(index);
150}
#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.