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

◆ get_audio_unit_mutable()

RootAudioUnit & MayaFlux::Buffers::TokenUnitManager::get_audio_unit_mutable ( ProcessingToken  token)

Gets an existing audio unit without creating if missing (mutable)

Parameters
tokenProcessing domain
Returns
Reference to the audio unit
Exceptions
std::out_of_rangeif token not found

This is a query-only operation; will not create a unit if missing. Mutable version for operations that need to modify the unit in-place.

Definition at line 96 of file TokenUnitManager.cpp.

97{
98 auto it = m_audio_units.find(token);
99 if (it == m_audio_units.end()) {
100 throw std::out_of_range("Audio unit not found for token");
101 }
102 return it->second;
103}
static MayaFlux::Nodes::ProcessingToken token
Definition Timers.cpp:8
std::unordered_map< ProcessingToken, RootAudioUnit > m_audio_units
Token-based map of root audio buffer units Maps: ProcessingToken -> channel -> {root_buffers,...

References m_audio_units, and token.

Referenced by MayaFlux::Buffers::BufferSupplyMixing::clone_audio_buffer_for_channels(), MayaFlux::Buffers::BufferSupplyMixing::fill_audio_from_interleaved(), MayaFlux::Buffers::BufferAccessControl::remove_audio_buffer(), MayaFlux::Buffers::BufferProcessingControl::remove_audio_processor_from_channel(), MayaFlux::Buffers::BufferProcessingControl::remove_audio_processor_from_token(), MayaFlux::Buffers::BufferSupplyMixing::remove_supplied_audio_buffer(), MayaFlux::Buffers::BufferProcessingControl::set_audio_final_processor(), MayaFlux::Buffers::BufferSupplyMixing::supply_audio_buffer_to(), and MayaFlux::Buffers::BufferAccessControl::terminate_active_buffers().

+ Here is the caller graph for this function: