Module frame

Source
Expand description

Audio frame.

Structs§

AudioFrame
An audio frame with immutable data.
AudioFrameMut
An audio frame with mutable data.
ChannelLayout
Channel layout.
ChannelLayoutRef
Channel layout reference.
Plane
Audio plane. This is an array of audio sample data. Depending on the sample format, this can either be samples for a single channel, or for all channels multiplexed together.
Planes
A collection of audio planes. This type can be dereferenced into a slice of Plane. If the sample data is planar, you will get the same number of Plane’s as you have channels. If the sample data is packed (or interleaved), there will be a single plane containing data for all channels.
PlanesMut
A collection of mutable audio planes.
SampleFormat
Audio sample format.
UnknownChannelLayout
An error indicating an unknown channel layout.
UnknownSampleFormat
An error indicating an unknown sample format.

Functions§

get_channel_layout
Get channel layout with a given name.
get_sample_format
Get audio sample format with a given name.