[−][src]Crate creak
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. |
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. |
Type Definitions
Sample | The type of decoded audio samples. |