|
MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
|
| MayaFlux::Buffers::AudioBuffer::AudioBuffer | ( | uint32_t | channel_id, |
| uint32_t | num_samples = 512 |
||
| ) |
Creates a new audio buffer with specified channel and capacity.
| channel_id | Audio channel identifier for this buffer |
| num_samples | Buffer capacity in audio samples (default: 512) |
Initializes an audio buffer with the specified channel ID and allocates memory for the specified number of double-precision audio samples. The default capacity of 512 samples is optimized for typical audio processing block sizes.
Definition at line 16 of file AudioBuffer.cpp.
References MayaFlux::Journal::Buffers, MayaFlux::Config::get_buffer_size(), MayaFlux::Journal::Init, m_data, and MF_WARN.
Here is the call graph for this function: