Crate audio_core

Source
Expand description

github crates.io docs.rs

The core audio traits.

If you want to build an audio component that is completely agnostic to the shape of any one given audio buffer you can add a dependency directly to these traits instead of depending on all of the audio crate.

Re-exports§

pub use self::buf::Buf;
pub use self::translate::Translate;

Modules§

buf
Trait for dealing with abstract channel buffers.
translate
Utility traits for dealing with sample translations.

Traits§

BufMut
A trait describing a mutable audio buffer.
Channel
One channel of audio samples, usually one of several channels in a multichannel buffer
ChannelMut
One channel of audio samples, usually one of several channels in a multichannel buffer
ExactSizeBuf
Trait used to describe a buffer that knows exactly how many frames it has regardless of if it’s sized or not.
Frame
The buffer of a single frame.
FrameMut
The buffer of a single frame.
InterleavedBuf
A trait describing a buffer that is interleaved.
InterleavedBufMut
A trait describing a buffer that is interleaved and mutable.
LinearChannel
Traits for linear channels.
LinearChannelMut
Trait for linear mutable channels.
ReadBuf
Trait used to govern sequential reading of an audio buffer.
ResizableBuf
Trait implemented for buffers that can be resized.
Sample
A sample that can be stored in an audio buffer. Types implementing this are known as being sample apt.
UniformBuf
A buffer which has a unifom channel size.
WriteBuf
Trait used to govern sequential writing to an audio buffer.