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 – alsa

Package – GStreamer Base Plug-ins

Pad Templates

sink

audio/x-raw:
         format: { F64LE, F64BE, F32LE, F32BE, S32LE, S32BE, U32LE, U32BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, S16LE, S16BE, U16LE, U16BE, S8, U8 }
         layout: interleaved
           rate: [ 1, 2147483647 ]
       channels: [ 1, 2147483647 ]
audio/x-dsd:
         format: { DSDU32BE, DSDU16BE, DSDU8, DSDU32LE, DSDU16LE }
         layout: interleaved
 reversed-bytes: false
           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

Object typeGstPad


Properties

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


The results of the search are