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

◆ get_audio_buffers()

const std::vector< std::shared_ptr< AudioBuffer > > & MayaFlux::Buffers::BufferAccessControl::get_audio_buffers ( ProcessingToken  token,
uint32_t  channel 
) const

Gets all audio buffers for a token and channel.

Parameters
tokenProcessing domain
channelChannel index
Returns
Const reference to vector of audio buffers

Definition at line 193 of file BufferAccessControl.cpp.

196{
197 const auto& unit = m_unit_manager.get_audio_unit(token);
198 if (channel >= unit.channel_count) {
199 throw std::out_of_range("Audio channel out of range");
200 }
201 return unit.get_buffer(channel)->get_child_buffers();
202}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
TokenUnitManager & m_unit_manager
Reference to the token/unit manager for storage operations.
const RootAudioUnit & get_audio_unit(ProcessingToken token) const
Gets an existing audio unit without creating if missing.

References MayaFlux::Buffers::TokenUnitManager::get_audio_unit(), m_unit_manager, and token.

+ Here is the call graph for this function: