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

◆ read_from_audio_input()

MAYAFLUX_API void MayaFlux::read_from_audio_input ( const std::shared_ptr< Buffers::AudioBuffer > &  buffer,
uint32_t  channel = 0 
)

Reads audio data from the default input source into a buffer.

Parameters
bufferBuffer to read audio data into
channelChannel index to read from (default: 0)

Reads audio data from the default input source (e.g., microphone) and fills the provided AudioBuffer with the captured audio samples. This function is typically used to capture live audio input for processing.

Definition at line 250 of file Graph.cpp.

251{
252 get_buffer_manager()->register_input_listener(buffer, channel);
253}
uint32_t channel
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
Definition Graph.cpp:133

References channel, and get_buffer_manager().

Referenced by create_input_listener_buffer().

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