audioresample

audioresample — Resamples audio

Synopsis

                    GstAudioResample;

Object Hierarchy

  GObject
   +----GstObject
         +----GstElement
               +----GstBaseTransform
                     +----GstAudioResample

Properties

  "filter-length"            gint                  : Read / Write
  "quality"                  gint                  : Read / Write / Construct

Description

audioresample resamples raw audio buffers to different sample rates using a configurable windowing function to enhance quality.

Example launch line

1
gst-launch -v filesrc location=sine.ogg ! oggdemux ! vorbisdec ! audioconvert ! audioresample ! audio/x-raw-int, rate=8000 ! alsasink
Decode an Ogg/Vorbis downsample to 8Khz and play sound through alsa. To create the Ogg/Vorbis file refer to the documentation of vorbisenc.

Details

GstAudioResample

typedef struct _GstAudioResample GstAudioResample;

Opaque data structure.

Property Details

The "filter-length" property

  "filter-length"            gint                  : Read / Write

Length of the resample filter

Deprectated: Use "quality" property instead

Allowed values: >= 0

Default value: 64


The "quality" property

  "quality"                  gint                  : Read / Write / Construct

Resample quality with 0 being the lowest and 10 being the best.

Allowed values: [0,10]

Default value: 4