Crate gstreamer_audio[][src]

Re-exports

pub use ffi;
pub use glib;
pub use gst;
pub use gst_base;
pub use audio_buffer::AudioBuffer;
pub use audio_buffer::AudioBufferRef;

Modules

audio_bufferv1_16
prelude
subclass

Macros

audio_decoder_error

Structs

AudioBaseSink

This is the base class for audio sinks. Subclasses need to implement the ::create_ringbuffer vmethod. This base class will then take care of writing samples to the ringbuffer, synchronisation, clipping and flushing.

AudioBaseSrc

This is the base class for audio sources. Subclasses need to implement the ::create_ringbuffer vmethod. This base class will then take care of reading samples from the ringbuffer, synchronisation and flushing.

AudioClippingMeta

Extra buffer metadata describing how much audio has to be clipped from the start or end of a buffer. This is used for compressed formats, where the first frame usually has some additional samples due to encoder and decoder delays, and the last frame usually has some additional samples to be able to fill the complete last frame.

AudioConverterConfig
AudioDecoder

This base class is for audio decoders turning encoded data into raw audio samples.

AudioEncoder

This base class is for audio encoders turning raw audio samples into encoded audio data.

AudioFlags

Extra audio flags

AudioFormatFlags

The different audio flags that a format info can have.

AudioFormatInfo

Information for an audio format.

AudioFormatIterator
AudioInfo

Information describing audio properties. This information can be filled in from GstCaps with from_caps().

AudioInfoBuilder
AudioLevelMetav1_20

Meta containing Audio Level Indication: https://tools.ietf.org/html/rfc6464

AudioMetav1_16

GstAudioDownmixMeta defines an audio downmix matrix to be send along with audio buffers. These functions in this module help to create and attach the meta as well as extracting it.

AudioPackFlags

The different flags that can be used when packing and unpacking.

AudioRingBufferSpec

The structure containing the format specification of the ringbuffer.

AudioSink

This is the most simple base class for audio sinks that only requires subclasses to implement a set of simple functions:

AudioSrc

This is the most simple base class for audio sources that only requires subclasses to implement a set of simple functions:

AudioStreamAlign

AudioStreamAlign provides a helper object that helps tracking audio stream alignment and discontinuities, and detects discontinuities if possible.

StreamVolume

This interface is implemented by elements that provide a stream volume. Examples for such elements are volume and playbin.

Enums

AudioChannelPosition

Audio channel positions.

AudioDitherMethod

Set of available dithering methods.

AudioEndianness
AudioFormat

Enum value describing the most common audio formats.

AudioLayout

Layout of the audio samples for the different channels.

AudioNoiseShapingMethod

Set of available noise shaping methods

AudioResamplerMethodv1_10

Different subsampling and upsampling methods

AudioRingBufferFormatType

The format of the samples in the ringbuffer.

StreamVolumeFormat

Different representations of a stream volume. StreamVolume::convert_volume() allows to convert between the different representations.

Constants

AUDIO_FORMAT_ENCODED
AUDIO_FORMAT_F32
AUDIO_FORMAT_F64
AUDIO_FORMAT_S8
AUDIO_FORMAT_S16
AUDIO_FORMAT_S18
AUDIO_FORMAT_S20
AUDIO_FORMAT_S24
AUDIO_FORMAT_S32
AUDIO_FORMAT_S2432
AUDIO_FORMAT_U8
AUDIO_FORMAT_U16
AUDIO_FORMAT_U18
AUDIO_FORMAT_U20
AUDIO_FORMAT_U24
AUDIO_FORMAT_U32
AUDIO_FORMAT_U2432
AUDIO_FORMAT_UNKNOWN
NONE_AUDIO_BASE_SINK
NONE_AUDIO_BASE_SRC
NONE_AUDIO_DECODER
NONE_AUDIO_ENCODER
NONE_AUDIO_SINK
NONE_AUDIO_SRC
NONE_STREAM_VOLUME

Statics

AUDIO_FORMATS_ALL

List of all audio formats, for use in template caps strings.

Traits

AudioFormatIteratorExt
AudioFormatIteratorExtRef

Functions

audio_buffer_clip
audio_buffer_truncatev1_16
audio_make_raw_caps
buffer_reorder_channels
channel_reorder_map
reorder_channels