Crate ausnd

Crate ausnd 

Source
Expand description

§AU Audio Format Reader and Writer

A reader and writer for the AU audio format. AU is made of a small header, an optional description field and sample data.

AU can store uncompressed integer or floating point sample data. It can also store compressed sample data. This crate supports uncompressed sample data and μ-law or A-law compressed sample data.

The AU header contains the length of the sample data. The header can also indicate that the length is unknown, which means that audio data should be read until the end of the stream. This enables file lengths over 4 gigabytes and streams with an infinite length.

Provided functionality:

  • AuReader reads the AU audio format, typically from a file.
  • AuWriter writes the AU audio format, typically to a file or a stream.
  • AuStreamParser parses the AU audio format and sends events to a callback. Useful for reading infinite AU streams.

Terminology: The term info is used to mean header data (made of channel count, sample rate, …). The term description is used to mean the description / info / annotation data field.

Structs§

AuReadInfo
Audio info returned by AuReader.
AuReader
AU audio format reader.
AuStreamParser
AU stream parser.
AuWriteInfo
Audio info for AuWriter.
AuWriter
AU audio format writer.
Samples
Iterator to read samples one by one.

Enums§

AuError
Error values.
AuEvent
AuEvents sent by AuStreamParser.
Sample
Sample data.
SampleFormat
Sample format.

Functions§

recognize
Checks if the given data is the start of an AU audio stream.

Type Aliases§

AuResult
Library Result type.