|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| void MayaFlux::Buffers::StreamSliceProcessor::load | ( | size_t | index, |
| Kakshya::StreamSlice | slice | ||
| ) |
Assign a StreamSlice to a slot.
Must be called after the processor is attached to a buffer, as the buffer's frame count is required to configure the CursorAccessProcessor. Calling load() before attachment is a no-op with an error log.
Constructs a CursorAccessProcessor owned by this slot, attaches it to the slice's stream, and configures the loop region from the slice's Region. Any previously loaded slot processor is detached first. The slot is left inactive; call bind() to start playback. Grows the slot pool if index exceeds the current size.
| index | The slot is left inactive; call bind() to start playback. |
| slice | StreamSlice describing the stream and region. |
Definition at line 40 of file StreamSliceProcessor.cpp.
References MayaFlux::Kakshya::StreamSlice::active, MayaFlux::Journal::BufferProcessing, MayaFlux::Journal::Buffers, MayaFlux::Journal::Configuration, detach_slot(), MayaFlux::Kakshya::StreamSlice::end_frame(), MayaFlux::Kakshya::StreamSlice::index, MayaFlux::Kakshya::StreamSlice::loop_count, MayaFlux::Kakshya::StreamSlice::looping, m_frames_per_block, m_on_end, m_slots, MF_ERROR, MF_WARN, slice(), MayaFlux::Kakshya::StreamSlice::speed, MayaFlux::Kakshya::StreamSlice::start_frame(), and MayaFlux::Kakshya::StreamSlice::stream.
Here is the call graph for this function: