MayaFlux 1.0.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 260 of file Graph.cpp.

261{
262 get_buffer_manager()->register_input_listener(buffer, channel);
263}
std::shared_ptr< NetworkGeometryBuffer > buffer
std::shared_ptr< Buffers::BufferManager > get_buffer_manager()
Gets the buffer manager from the default engine.
Definition Graph.cpp:148

References buffer, 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: