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

◆ clear()

void MayaFlux::Buffers::AudioBuffer::clear ( )
overridevirtual

Resets all audio samples in the buffer to silence.

Initializes all audio sample values to zero (silence) without changing the buffer capacity. This is the audio-specific implementation of the Buffer interface's clear() method.

Implements MayaFlux::Buffers::Buffer.

Reimplemented in MayaFlux::Buffers::RootBuffer< AudioBuffer >.

Definition at line 44 of file AudioBuffer.cpp.

45{
46 std::ranges::fill(m_data, 0.0);
47}
std::vector< double > m_data
Vector storing the actual double-precision audio sample data.

References m_data.

Referenced by MayaFlux::Buffers::NodeBuffer::process_default().

+ Here is the caller graph for this function: