# wasapi2sink

Provides audio playback using the Windows Audio Session API available with Windows 10.

## Example pipelines

     gst-launch-1.0 -v audiotestsrc ! wasapi2sink

Generate audio test buffers and render to the default audio device.

     gst-launch-1.0 -v audiotestsink samplesperbuffer=160 ! wasapi2sink low-latency=true

Same as above, but with the minimum possible latency

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstBaseSink
                        ╰──GstAudioBaseSink
                            ╰──wasapi2sink

## Implemented interfaces

    GstStreamVolume

## Factory details

Authors: – Seungha Yang <seungha></seungha>

Classification: – `Sink/Audio/Hardware`

Rank – primary + 1

Plugin – wasapi2

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, S20_32LE, S20_32BE, U20_32LE, U20_32BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, S16LE, S16BE, U16LE, U16BE, S8, U8 }
             layout: interleaved
               rate: [ 1, 2147483647 ]
           channels: [ 1, 2147483647 ]

Presence – always

Direction – sink

Object type – GstPad

## Properties

### continue-on-error

    “continue-on-error” gboolean

If enabled, wasapi2sink will post a warning message instead of an error, when device failures occur, such as open failure, I/O error, or device removal. The element will continue to consume audio buffers and behave as if a render device were active, allowing pipeline to keep running even when no audio endpoint is available

Flags : Read / Write

Default value : false

Since : 1.28

### device

    “device” gchararray

Audio device ID as provided by WASAPI device endpoint ID as provided by IMMDevice::GetId

Flags : Read / Write

Default value : NULL

### dispatcher

    “dispatcher” gpointer

ICoreDispatcher COM object used for activating device from UI thread.

Flags : Read / Write

Since : 1.18

### exclusive

    “exclusive” gboolean

Flags : Read / Write

Default value : false

Since : 1.28

### 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

### volume

    “volume” gdouble

Volume of this stream

Flags : Read / Write

Default value : 1

The results of the search are