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

◆ get_regions()

std::vector< FileRegion > MayaFlux::IO::SoundFileReader::get_regions ( ) const
overridevirtual

Get all regions (markers, loops, etc.) from the file.

Returns
Vector of FileRegion structures.

Implements MayaFlux::IO::FileReader.

Definition at line 484 of file SoundFileReader.cpp.

485{
486 std::shared_lock<std::shared_mutex> ctx_lock(m_context_mutex);
487
488 if (!m_context || !m_context->is_valid()) {
489 return {};
490 }
491
492 std::lock_guard<std::mutex> meta_lock(m_metadata_mutex);
493 return m_cached_regions;
494}
std::mutex m_metadata_mutex
Mutex for thread-safe metadata access.
std::shared_ptr< FFmpegContext > m_context
std::vector< FileRegion > m_cached_regions
Cached file regions (markers, loops, etc.).

References m_cached_regions, m_context, m_context_mutex, and m_metadata_mutex.

Referenced by load_into_container().

+ Here is the caller graph for this function: