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

◆ create_container()

std::shared_ptr< Kakshya::SignalSourceContainer > MayaFlux::IO::SoundFileReader::create_container ( )
overridevirtual

Create a SignalSourceContainer for this file.

Returns
Shared pointer to a new SignalSourceContainer.

Implements MayaFlux::IO::FileReader.

Definition at line 531 of file SoundFileReader.cpp.

532{
533 std::shared_lock lock(m_context_mutex);
534 if (!m_demux || !m_audio) {
535 set_error("File not open");
536 return nullptr;
537 }
538
539 return std::make_shared<Kakshya::SoundFileContainer>();
540}
std::shared_ptr< AudioStreamContext > m_audio
Codec + resampler state.
std::shared_mutex m_context_mutex
Guards both context pointers.
void set_error(const std::string &error) const
Set the last error message.
std::shared_ptr< FFmpegDemuxContext > m_demux
Container / format state.

References m_audio, m_context_mutex, m_demux, and set_error().

Referenced by MayaFlux::IO::VideoFileReader::load_into_container().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: