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

◆ remove_buffer()

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

Removes a buffer from a token (dispatches based on token type)

Parameters
bufferBuffer to remove
tokenProcessing domain
channelChannel index (used only for audio tokens)

Definition at line 123 of file BufferAccessControl.cpp.

127{
129 if (auto audio_buffer = std::dynamic_pointer_cast<AudioBuffer>(buffer)) {
130 remove_audio_buffer(audio_buffer, token, channel);
131 }
133 if (auto vk_buffer = std::dynamic_pointer_cast<VKBuffer>(buffer)) {
134 remove_graphics_buffer(vk_buffer, token);
135 }
136 }
137}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
void remove_audio_buffer(const std::shared_ptr< AudioBuffer > &buffer, ProcessingToken token, uint32_t channel)
Removes an audio buffer from a token and channel.
void remove_graphics_buffer(const std::shared_ptr< Buffer > &buffer, ProcessingToken token)
Removes a graphics buffer from a token.
@ AUDIO_BACKEND
Standard audio processing backend configuration.
@ GRAPHICS_BACKEND
Standard graphics processing backend configuration.
@ AUDIO_PARALLEL
High-performance audio processing with GPU acceleration.

References MayaFlux::Buffers::AUDIO_BACKEND, MayaFlux::Buffers::AUDIO_PARALLEL, MayaFlux::Buffers::GRAPHICS_BACKEND, remove_audio_buffer(), remove_graphics_buffer(), and token.

+ Here is the call graph for this function: