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

◆ supports_streaming()

bool MayaFlux::IO::SoundFileReader::supports_streaming ( ) const
overridevirtual

Check if the reader supports streaming access.

Returns
True if streaming is supported.

Implements MayaFlux::IO::FileReader.

Definition at line 917 of file SoundFileReader.cpp.

918{
919 std::shared_lock<std::shared_mutex> lock(m_context_mutex);
920
921 if (!m_context || !m_context->format_context) {
922 return false;
923 }
924
925 return m_context->format_context->pb && m_context->format_context->pb->seekable;
926}
std::shared_ptr< FFmpegContext > m_context

References m_context, and m_context_mutex.