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

◆ close()

void MayaFlux::IO::SoundFileReader::close ( )
overridevirtual

Close the currently open file and release resources.

Implements MayaFlux::IO::FileReader.

Definition at line 217 of file SoundFileReader.cpp.

218{
219 std::unique_lock<std::shared_mutex> lock(m_context_mutex);
220
221 if (m_context) {
222 m_context.reset();
224 m_filepath.clear();
225 m_cached_metadata.reset();
226 m_cached_regions.clear();
227 }
228}
std::atomic< uint64_t > m_current_frame_position
Current frame position for reading.
std::shared_ptr< FFmpegContext > m_context
std::optional< FileMetadata > m_cached_metadata
Cached file metadata.
std::vector< FileRegion > m_cached_regions
Cached file regions (markers, loops, etc.).
std::string m_filepath
Path to the currently open file.

References m_cached_metadata, m_cached_regions, m_context, m_context_mutex, m_current_frame_position, and m_filepath.

Referenced by ~SoundFileReader().

+ Here is the caller graph for this function: