26 explicit
AudioBuffer(std::span<
float> buffer) noexcept SFFDN_NONBLOCKING;
35 AudioBuffer(uint32_t frame_size, uint32_t channels, std::span<
float> buffer) noexcept SFFDN_NONBLOCKING;
53 float*
Data() noexcept SFFDN_NONBLOCKING;
59 const
float*
Data() const noexcept SFFDN_NONBLOCKING;
66 std::span<const
float>
GetChannelSpan(uint32_t channel) const noexcept SFFDN_NONBLOCKING;
73 std::span<
float>
GetChannelSpan(uint32_t channel) noexcept SFFDN_NONBLOCKING;
87 uint32_t channel_count_;
88 std::span<
float> buffer_;
A class representing an audio buffer with multiple channels of non-interleaved audio data.
Definition audio_buffer.h:20
uint32_t ChannelCount() const noexcept SFFDN_NONBLOCKING
Returns the number of channels in the audio buffer.
AudioBuffer Offset(uint32_t offset, uint32_t frame_size) const noexcept SFFDN_NONBLOCKING
Returns a new AudioBuffer where every channel is offset by a certain number of samples.
uint32_t SampleCount() const noexcept SFFDN_NONBLOCKING
Returns the number of samples in one channel of the audio buffer.
AudioBuffer GetChannelBuffer(uint32_t channel) const noexcept SFFDN_NONBLOCKING
Returns an AudioBuffer object representing the audio data for a specific channel.
std::span< const float > GetChannelSpan(uint32_t channel) const noexcept SFFDN_NONBLOCKING
Returns a span representing the audio data for a specific channel.
float * Data() noexcept SFFDN_NONBLOCKING
Provides direct access to the audio data.
AudioBuffer() noexcept SFFDN_NONBLOCKING
Constructs an empty audio buffer.