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

◆ bind()

void MayaFlux::Buffers::StreamSliceProcessor::bind ( size_t  index)

Activate a slot, resetting its processor cursor to region start.

The slice's current region, speed, looping and loop count are applied first. The same parameters are re-applied every block, so edits made through slice() take effect on a playing voice at the next block.

Parameters
indexSlot index

Definition at line 96 of file StreamSliceProcessor.cpp.

97{
98 if (index >= m_slots.size() || !m_slots[index].proc)
99 return;
100
101 apply_slice(m_slots[index].slice, *m_slots[index].proc);
102 m_slots[index].proc->reset();
103 m_slots[index].slice.active = true;
104}
uint32_t index
Definition VKDevice.cpp:122
Kakshya::StreamSlice & slice(size_t index)

References index, m_slots, and slice().

+ Here is the call graph for this function: