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

◆ get_audio_channel_count()

uint32_t MayaFlux::Buffers::TokenUnitManager::get_audio_channel_count ( ProcessingToken  token) const

Gets the number of channels in an audio unit.

Parameters
tokenProcessing domain
Returns
Number of channels, or 0 if unit doesn't exist

Definition at line 207 of file TokenUnitManager.cpp.

208{
209 auto it = m_audio_units.find(token);
210 return (it != m_audio_units.end()) ? it->second.channel_count : 0;
211}
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::BufferAccessControl::get_num_audio_out_channels(), MayaFlux::Buffers::BufferSupplyMixing::remove_supplied_audio_buffer(), and MayaFlux::Buffers::BufferSupplyMixing::supply_audio_buffer_to().

+ Here is the caller graph for this function: