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

◆ add_buffer()

void MayaFlux::Buffers::BufferManager::add_buffer ( const std::shared_ptr< Buffer > &  buffer,
ProcessingToken  token,
uint32_t  channel = 0 
)

Adds a buffer to a token and channel.

Parameters
bufferBuffer to add (AudioBuffer or VKBuffer depending on token)
tokenProcessing domain
channelChannel index (optional, used for audio)

Definition at line 199 of file BufferManager.cpp.

203{
204 m_access_control->add_buffer(buffer, token, channel);
205}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
std::unique_ptr< BufferAccessControl > m_access_control
Buffer and unit access operations.

References m_access_control, and token.