Module audio

Source
Expand description

Types and utilities for Audio Buffers.

In Conformal, components process audio in buffers. Buffers are groups of samples arranged into channels. In Conformal, each channel is represented by a &[f32].

Structs§

BufferData
A buffer of audio samples that owns its data.

Enums§

ChannelLayout
Defines the layout of the channels in a buffer.

Traits§

Buffer
Represents a (potentially multi-channel) buffer of audio samples
BufferIndex
A trait for index types that can be used in slice_buffer and slice_buffer_mut.
BufferMut
A mutable (potentially multi-channel) buffer of audio samples.

Functions§

all_approx_eq
Checks if all the values from two iterators of f32 values are within e of each other.
approx_eq
Checks if two f32 values a and b are within e of each other.
buffer_approx_eq
Checks two buffers are equal to within a tolerance e.
channels
Returns an iterator for the channels of a buffer.
channels_mut
Returns an iterator for the channels of a mutable buffer.
slice_buffer
Create a sub-buffer from a buffer using an index range.
slice_buffer_mut
Create a sub-buffer of a mutable buffer using an index range.