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

◆ stop()

void MayaFlux::Core::RtAudioStream::stop ( )
overridevirtual

Deactivates the audio stream and halts data transfer.

Stops the RtAudio stream, suspending the real-time processing while maintaining the stream's configuration.

Implements MayaFlux::Core::AudioStream.

Definition at line 295 of file RtAudioBackend.cpp.

296{
297 if (!is_running()) {
298 return;
299 }
300
301 try {
302 m_context->stopStream();
303 m_isRunning = false;
304 } catch (const RtAudioErrorType& e) {
308 std::source_location::current(),
309 "Failed to stop RtAudio stream: {}",
310 m_context->getErrorText());
311 }
312}
bool m_isRunning
Flag indicating if the stream is currently running.
RtAudio * m_context
Pointer to the underlying RtAudio context.
bool is_running() const override
Checks if the stream is actively processing audio data.
@ AudioBackend
Audio processing backend (RtAudio, JACK, ASIO)
void error_rethrow(Component component, Context context, std::source_location location=std::source_location::current(), std::string_view additional_context="")
Catch and log an exception, then rethrow it.
@ Core
Core engine, backend, subsystems.

References MayaFlux::Journal::AudioBackend, MayaFlux::Journal::Core, is_running(), m_context, and m_isRunning.

Referenced by close(), and ~RtAudioStream().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: