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

◆ setup()

void MayaFlux::Buffers::AudioBuffer::setup ( uint32_t  channel,
uint32_t  num_samples 
)
virtual

Initializes the audio buffer with specified channel and capacity.

Parameters
channelAudio channel identifier for this buffer
num_samplesBuffer capacity in audio samples

Configures the audio buffer with the specified channel ID and allocates memory for the specified number of audio samples. This method should be called on uninitialized buffers before use.

Definition at line 32 of file AudioBuffer.cpp.

33{
34 m_channel_id = channel;
35 resize(num_samples);
36}
uint32_t m_channel_id
Audio channel identifier for this buffer.
virtual void resize(uint32_t num_samples)
Adjusts the audio buffer's sample capacity.

References m_channel_id, and resize().

+ Here is the call graph for this function: