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§
- Audio
Info - Information about an opened audio file.
- Decoder
- An audio decoder.
- RawAudio
Spec - Specification decsribing how to decode some raw audio samples.
- Sample
Iterator - Iterates over decoded audio samples. Channels are interleaved.
Enums§
- Audio
Format - Indicates the format of an audio stream.
- Decoder
Error - An error encountered while decoding an audio file.
- Endian
- Represents endianness.
- RawSample
Format - Represents supported sample formats for raw audio decoding.
Type Aliases§
- Sample
- The type of decoded audio samples.