alsasink

This element renders audio samples using the ALSA audio API.

Example pipelines

 gst-launch-1.0 -v uridecodebin uri=file:///path/to/audio.ogg ! audioconvert ! audioresample ! autoaudiosink

Play an Ogg/Vorbis file and output audio via ALSA.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseSink
                    ╰──GstAudioBaseSink
                        ╰──GstAudioSink
                            ╰──alsasink

Factory details

Authors: – Wim Taymans

Classification:Sink/Audio

Rank – primary

Plugin – gstalsa

Package – GStreamer Base Plug-ins git

Pad Templates

sink

audio/x-raw:
         format: { S8, U8, S16LE, S16BE, U16LE, U16BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S32LE, S32BE, U32LE, U32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, F32LE, F32BE, F64LE, F64BE }
         layout: interleaved
           rate: [ 1, 2147483647 ]
       channels: [ 1, 2147483647 ]
audio/x-ac3:
         framed: true
audio/x-eac3:
         framed: true
audio/x-dts:
         framed: true
     block-size: { (int)512, (int)1024, (int)2048 }
audio/mpeg:
    mpegversion: 1
mpegaudioversion: [ 1, 3 ]
         parsed: true

Presencealways

Directionsink


Properties

alignment-threshold

“alignment-threshold” guint64

Timestamp alignment threshold in nanoseconds

Flags : Read / Write

Default value : 40000000


async

“async” gboolean

Go asynchronously to PAUSED

Flags : Read / Write

Default value : true


blocksize

“blocksize” guint

Size in bytes to pull per buffer (0 = default)

Flags : Read / Write

Default value : 4096


buffer-time

“buffer-time” gint64

Size of audio buffer in microseconds, this is the minimum latency that the sink reports

Flags : Read / Write

Default value : 200000


can-activate-pull

“can-activate-pull” gboolean

Allow pull-based scheduling

Flags : Read / Write

Default value : false


card-name

“card-name” gchararray

Human-readable name of the sound card

Flags : Read


device

“device” gchararray

ALSA device, as defined in an asound configuration file

Flags : Read / Write

Default value : default


device-name

“device-name” gchararray

Human-readable name of the sound device

Flags : Read

Default value : NULL


discont-wait

“discont-wait” guint64

Window of time in nanoseconds to wait before creating a discontinuity

Flags : Read / Write

Default value : 1000000000


drift-tolerance

“drift-tolerance” gint64

Tolerance for clock drift in microseconds

Flags : Read / Write

Default value : 40000


enable-last-sample

“enable-last-sample” gboolean

Enable the last-sample property

Flags : Read / Write

Default value : false


last-sample

“last-sample” GstSample *

The last sample received in the sink

Flags : Read


latency-time

“latency-time” gint64

The minimum amount of data to write in each iteration in microseconds

Flags : Read / Write

Default value : 10000


max-bitrate

“max-bitrate” guint64

The maximum bits per second to render (0 = disabled)

Flags : Read / Write

Default value : 0


max-lateness

“max-lateness” gint64

Maximum number of nanoseconds that a buffer can be late before it is dropped (-1 unlimited)

Flags : Read / Write

Default value : 18446744073709551615


name

“name” gchararray

The name of the object

Flags : Read / Write / Construct

Default value : NULL


parent

“parent” GstObject *

The parent of the object

Flags : Read / Write


processing-deadline

“processing-deadline” guint64

Maximum processing deadline in nanoseconds

Flags : Read / Write

Default value : 20000000


provide-clock

“provide-clock” gboolean

Provide a clock to be used as the global pipeline clock

Flags : Read / Write

Default value : true


qos

“qos” gboolean

Generate Quality-of-Service events upstream

Flags : Read / Write

Default value : false


render-delay

“render-delay” guint64

Additional render delay of the sink in nanoseconds

Flags : Read / Write

Default value : 0


slave-method

“slave-method” Audio-base-sink-slave-method

Algorithm used to match the rate of the masterclock

Flags : Read / Write

Default value : skew (1)


stats

“stats” GstStructure *

Sink Statistics

Flags : Read

Default value : application/x-gst-base-sink-stats, average-rate=(double)0, dropped=(guint64)0, rendered=(guint64)0;


sync

“sync” gboolean

Sync on the clock

Flags : Read / Write

Default value : true


throttle-time

“throttle-time” guint64

The time to keep between rendered buffers (0 = disabled)

Flags : Read / Write

Default value : 0


ts-offset

“ts-offset” gint64

Timestamp offset in nanoseconds

Flags : Read / Write

Default value : 0


Named constants

Audio-base-sink-slave-method

Members

resample (0) – GST_AUDIO_BASE_SINK_SLAVE_RESAMPLE
skew (1) – GST_AUDIO_BASE_SINK_SLAVE_SKEW
none (2) – GST_AUDIO_BASE_SINK_SLAVE_NONE
custom (3) – GST_AUDIO_BASE_SINK_SLAVE_CUSTOM

The results of the search are