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

◆ get_audio_buffers()

std::vector< std::shared_ptr< Buffers::SoundContainerBuffer > > MayaFlux::IO::IOManager::get_audio_buffers ( const std::shared_ptr< Kakshya::SoundFileContainer > &  container) const

Retrieve the SoundContainerBuffers created for a container.

Parameters
containerContainer previously passed to hook_audio_container_to_buffers().
Returns
Stored buffer vector, or empty if not found.

Definition at line 499 of file IOManager.cpp.

501{
502 std::shared_lock lock(m_buffers_mutex);
503 auto it = m_audio_buffers.find(container);
504 return it != m_audio_buffers.end() ? it->second : std::vector<std::shared_ptr<Buffers::SoundContainerBuffer>> {};
505}
std::unordered_map< std::shared_ptr< Kakshya::SoundFileContainer >, std::vector< std::shared_ptr< Buffers::SoundContainerBuffer > > > m_audio_buffers
std::shared_mutex m_buffers_mutex

References m_audio_buffers, and m_buffers_mutex.