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

◆ set_error()

void MayaFlux::IO::SoundFileReader::set_error ( const std::string &  error) const
private

Set the last error message.

Parameters
errorError string.

Definition at line 626 of file SoundFileReader.cpp.

627{
628 std::lock_guard<std::mutex> lock(m_error_mutex);
629 m_last_error = err;
630 MF_ERROR(Journal::Component::IO, Journal::Context::FileIO, "SoundFileReader: {}", err);
631}
#define MF_ERROR(comp, ctx,...)
std::mutex m_error_mutex
Mutex for thread-safe error message access.
std::string m_last_error
Last error message encountered.
@ FileIO
Filesystem I/O operations.
@ IO
Networking, file handling, streaming.

References MayaFlux::Journal::FileIO, MayaFlux::Journal::IO, m_error_mutex, m_last_error, and MF_ERROR.

Referenced by create_container(), decode_frames(), load_into_container(), open(), open_from_demux(), read_all(), read_frames(), read_region(), seek(), and seek_internal().

+ Here is the caller graph for this function: