MayaFlux 0.4.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 712 of file SoundFileReader.cpp.

713{
714 std::lock_guard<std::mutex> lock(m_error_mutex);
715 m_last_error = err;
716 MF_ERROR(Journal::Component::IO, Journal::Context::FileIO, "SoundFileReader: {}", err);
717}
#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_bounded(), 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: