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

◆ is_stream_open()

static bool MayaFlux::Core::RtAudioSingleton::is_stream_open ( )
inlinestatic

Checks if an audio stream is currently active.

Returns
True if a stream is open, false otherwise

Thread-safe method that provides the current state of stream ownership without modifying any internal state.

Definition at line 98 of file RtAudioSingleton.hpp.

99 {
100 std::lock_guard<std::mutex> lock(s_mutex);
101 return s_stream_open;
102 }
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.