gi-gstaudio-1.0.23: GStreamerAudio bindings
Copyright Will Thompson Iñaki García Etxebarria and Jonas Platte LGPL-2.1 Iñaki García Etxebarria Safe-Inferred Haskell2010

GI.GstAudio.Constants

Description

Synopsis

# Documentation

pattern META_TAG_AUDIO_STR :: Text Source #

This metadata is relevant for audio streams.

Since: 1.2

pattern META_TAG_AUDIO_RATE_STR :: Text Source #

This metadata stays relevant as long as sample rate is unchanged.

Since: 1.8

This metadata stays relevant as long as channels are unchanged.

Since: 1.2

No description available in the introspection data.

No description available in the introspection data.

No description available in the introspection data.

G_TYPE_DOUBLE, transition bandwidth. The width of the transition band for the kaiser window. 0.087 is the default.

G_TYPE_DOUBLE, stopband attenuation in decibels. The attenuation after the stopband for the kaiser window. 85 dB is the default.

G_TYPE_INT: the number of taps to use for the filter. 0 is the default and selects the taps automatically.

G_TYPE_DOUBLE: The maximum allowed phase error when switching sample rates. 0.1 is the default.

G_TYPE_UINT, oversampling to use when interpolating filters 8 is the default.

G_TYPE_UINT: the amount of memory to use for full filter tables before switching to interpolated filter tables. 1048576 is the default.

GST_TYPE_AUDIO_RESAMPLER_FILTER_MODE: how the filter tables should be constructed. GST_AUDIO_RESAMPLER_FILTER_MODE_AUTO is the default.

GST_TYPE_AUDIO_RESAMPLER_INTERPOLATION: how the filter coefficients should be interpolated. GST_AUDIO_RESAMPLER_FILTER_INTERPOLATION_CUBIC is default.

G_TYPE_DOUBLE, Cutoff parameter for the filter. 0.940 is the default.

G_TYPE_DOUBLE, C parameter of the cubic filter. Values between 0.0 and 2.0 are accepted. 0.0 is the default.

See AUDIO_RESAMPLER_OPT_CUBIC_B for some more common values

G_TYPE_DOUBLE, B parameter of the cubic filter. Values between 0.0 and 2.0 are accepted. 1.0 is the default.

Below are some values of popular filters: B C Hermite 0.0 0.0 Spline 1.0 0.0 Catmull-Rom 0.0 1/2

pattern AUDIO_RATE_RANGE :: Text Source #

Maximum range of allowed sample rates, for use in template caps strings.

pattern AUDIO_FORMATS_ALL :: Text Source #

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

Formats are sorted by decreasing "quality", using these criteria by priority: - depth - width - Float > Signed > Unsigned - native endianness preferred

pattern AUDIO_ENCODER_SRC_NAME :: Text Source #

the name of the templates for the source pad

pattern AUDIO_ENCODER_SINK_NAME :: Text Source #

the name of the templates for the sink pad

pattern AUDIO_DEF_RATE :: Int32 Source #

Standard sampling rate used in consumer audio.

pattern AUDIO_DEF_FORMAT :: Text Source #

Standard format used in consumer audio.

pattern AUDIO_DEF_CHANNELS :: Int32 Source #

Standard number of channels used in consumer audio.

pattern AUDIO_DECODER_SRC_NAME :: Text Source #

The name of the templates for the source pad.

pattern AUDIO_DECODER_SINK_NAME :: Text Source #

The name of the templates for the sink pad.

pattern AUDIO_DECODER_MAX_ERRORS :: Int32 Source #

Default maximum number of errors tolerated before signaling error.

AudioResamplerMethod, The resampler method to use when changing sample rates. Default is GST_AUDIO_RESAMPLER_METHOD_BLACKMAN_NUTTALL.

G_TYPE_UINT, The quantization amount. Components will be quantized to multiples of this value. Default is 1

AudioNoiseShapingMethod, The noise shaping method to use to mask noise from quantization errors. Default is GST_AUDIO_NOISE_SHAPING_NONE.

GST_TYPE_LIST, The channel mapping matrix.

The matrix coefficients must be between -1 and 1: the number of rows is equal to the number of output channels and the number of columns is equal to the number of input channels.

## Example matrix generation code

To generate the matrix using code:

GValue v = G_VALUE_INIT;
GValue v2 = G_VALUE_INIT;
GValue v3 = G_VALUE_INIT;

g_value_init (&v2, GST_TYPE_ARRAY);
g_value_init (&v3, G_TYPE_DOUBLE);
g_value_set_double (&v3, 1);
gst_value_array_append_value (&v2, &v3);
g_value_unset (&v3);
[ Repeat for as many double as your input channels - unset and reinit v3 ]
g_value_init (&v, GST_TYPE_ARRAY);
gst_value_array_append_value (&v, &v2);
g_value_unset (&v2);
[ Repeat for as many v2's as your output channels - unset and reinit v2]
g_object_set_property (G_OBJECT (audiomixmatrix), "matrix", &v);
g_value_unset (&v);

AudioDitherMethod, The dither method to use when changing bit depth. Default is GST_AUDIO_DITHER_NONE.

pattern AUDIO_CHANNELS_RANGE :: Text Source #

Maximum range of allowed channels, for use in template caps strings.