MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Core::AudioStream Class Referenceabstract

Manages digital audio data flow between the engine and hardware. More...

#include <AudioBackend.hpp>

+ Inheritance diagram for MayaFlux::Core::AudioStream:
+ Collaboration diagram for MayaFlux::Core::AudioStream:

Public Member Functions

virtual ~AudioStream ()=default
 Virtual destructor for proper cleanup of derived classes.
 
virtual void open ()=0
 Initializes the audio stream and allocates required resources.
 
virtual void start ()=0
 Activates the audio stream and begins data transfer.
 
virtual void stop ()=0
 Deactivates the audio stream and halts data transfer.
 
virtual void close ()=0
 Terminates the audio stream and releases all resources.
 
virtual bool is_running () const =0
 Checks if the stream is actively processing audio data.
 
virtual bool is_open () const =0
 Checks if the stream is initialized and ready for activation.
 
virtual void set_process_callback (std::function< int(void *, void *, unsigned int)> processCallback)=0
 Sets the function to process audio data.
 

Detailed Description

Manages digital audio data flow between the engine and hardware.

Handles the real-time bidirectional transfer of audio sample data between the processing engine and system audio endpoints. Provides lifecycle management for audio streams and callback-based processing integration.

Definition at line 158 of file AudioBackend.hpp.


The documentation for this class was generated from the following file: