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

◆ get_sample()

virtual double & MayaFlux::Buffers::AudioBuffer::get_sample ( uint32_t  index)
inlinevirtual

Gets a reference to a specific audio sample in the buffer.

Parameters
indexAudio sample index
Returns
Reference to the audio sample value at the specified index

Provides direct access to a specific audio sample for reading or modification. No bounds checking is performed, so the caller must ensure the index is valid within the buffer's capacity.

Definition at line 209 of file AudioBuffer.hpp.

209{ return get_data()[index]; }
virtual std::vector< double > & get_data()
Gets mutable access to the buffer's underlying audio data.