Crate creak

Source
Expand description

§Creak

Creak is a simple library for decoding popular audio formats into raw f32 samples.

§Usage

The Decoder struct handles opening, parsing, and decoding audio files. Use Decoder::open() to open a file. When you want to read samples, call Decoder.into_samples() to get an iterator over the samples.

The audio file is closed when the Decoder or SampleIterator is dropped.

Currently supported formats are WAV, Ogg Vorbis, MP3, and FLAC.

Structs§

AudioInfo
Information about an opened audio file.
Decoder
An audio decoder.
RawAudioSpec
Specification decsribing how to decode some raw audio samples.
SampleIterator
Iterates over decoded audio samples. Channels are interleaved.

Enums§

AudioFormat
Indicates the format of an audio stream.
DecoderError
An error encountered while decoding an audio file.
Endian
Represents endianness.
RawSampleFormat
Represents supported sample formats for raw audio decoding.

Type Aliases§

Sample
The type of decoded audio samples.