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

◆ remove_audio_buffer()

void MayaFlux::Buffers::BufferAccessControl::remove_audio_buffer ( const std::shared_ptr< AudioBuffer > &  buffer,
ProcessingToken  token,
uint32_t  channel 
)

Removes an audio buffer from a token and channel.

Parameters
bufferAudio buffer to remove
tokenProcessing domain
channelChannel index

Definition at line 176 of file BufferAccessControl.cpp.

180{
182 return;
183 }
184
186 if (channel >= unit.channel_count) {
187 return;
188 }
189
190 unit.get_buffer(channel)->remove_child_buffer(buffer);
191}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
TokenUnitManager & m_unit_manager
Reference to the token/unit manager for storage operations.
bool has_audio_unit(ProcessingToken token) const
Checks if an audio unit exists for the given token.
RootAudioUnit & get_audio_unit_mutable(ProcessingToken token)
Gets an existing audio unit without creating if missing (mutable)
std::shared_ptr< RootAudioBuffer > get_buffer(uint32_t channel) const

References MayaFlux::Buffers::TokenUnitManager::get_audio_unit_mutable(), MayaFlux::Buffers::RootAudioUnit::get_buffer(), MayaFlux::Buffers::TokenUnitManager::has_audio_unit(), m_unit_manager, and token.

Referenced by remove_buffer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: