wasapisink

Provides audio playback using the Windows Audio Session API available with Vista and newer.

Example pipelines

 gst-launch-1.0 -v audiotestsrc samplesperbuffer=160 ! wasapisink

Generate 20 ms buffers and render to the default audio device.

 gst-launch-1.0 -v audiotestsrc samplesperbuffer=160 ! wasapisink low-latency=true

Same as above, but with the minimum possible latency

Hierarchy

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

Factory details

Authors: – Nirbheek Chauhan , Ole André Vadla Ravnås

Classification:Sink/Audio/Hardware

Rank – primary

Plugin – wasapi

Package – GStreamer Bad 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 ]

Presencealways

Directionsink

Object typeGstPad


Properties

device

“device” gchararray

WASAPI device endpoint ID as provided by IMMDevice::GetId

Flags : Read / Write

Default value : NULL


exclusive

“exclusive” gboolean

Open the device in exclusive mode

Flags : Read / Write

Default value : false


low-latency

“low-latency” gboolean

Optimize all settings for lowest latency. Always safe to enable.

Flags : Read / Write

Default value : false


mute

“mute” gboolean

Mute state of this stream

Flags : Read / Write

Default value : false


role

“role” GstWasapiDeviceRole *

Role of the device: communications, multimedia, etc

Flags : Read / Write

Default value : console (0)


use-audioclient3

“use-audioclient3” gboolean

Use the Windows 10 AudioClient3 API when available and if the low-latency property is set to TRUE

Flags : Read / Write

Default value : true


The results of the search are