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

◆ get_extracted_audio()

std::shared_ptr< Kakshya::SoundFileContainer > MayaFlux::IO::IOManager::get_extracted_audio ( const std::shared_ptr< Kakshya::VideoFileContainer > &  container) const

Retrieve the SoundFileContainer extracted from a video file.

Parameters
containerVideoFileContainer whose audio was extracted during load_video().
Returns
Extracted SoundFileContainer, or nullptr if not found.

Definition at line 508 of file IOManager.cpp.

509{
510 std::shared_lock lock(m_buffers_mutex);
511 auto it = m_extracted_audio.find(container);
512 return it != m_extracted_audio.end() ? it->second : nullptr;
513}
std::unordered_map< std::shared_ptr< Kakshya::VideoFileContainer >, std::shared_ptr< Kakshya::SoundFileContainer > > m_extracted_audio
std::shared_mutex m_buffers_mutex

References m_buffers_mutex, and m_extracted_audio.