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

◆ mark_stream_closed()

static void MayaFlux::Core::RtAudioSingleton::mark_stream_closed ( )
inlinestatic

Deregisters an active audio stream from the system.

Thread-safe method that updates the internal state to reflect that no audio stream is currently active, allowing a new stream to be opened if needed.

Definition at line 85 of file RtAudioSingleton.hpp.

86 {
87 std::lock_guard<std::mutex> lock(s_mutex);
88 s_stream_open = false;
89 }
static bool s_stream_open
Stream state flag to enforce exclusive stream ownership.
static std::mutex s_mutex
Synchronization primitive for thread-safe access to the singleton.

References s_mutex, and s_stream_open.

Referenced by MayaFlux::Core::RtAudioStream::close(), and MayaFlux::Core::RtAudioStream::open().

+ Here is the caller graph for this function: