wasapisrc

Provides audio capture from the Windows Audio Session API available with Vista and newer.

Example pipelines

 gst-launch-1.0 -v wasapisrc ! fakesink

Capture from the default audio device and render to fakesink.

 gst-launch-1.0 -v wasapisrc low-latency=true ! fakesink

Capture from the default audio device with the minimum possible latency and render to fakesink.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseSrc
                    ╰──GstPushSrc
                        ╰──GstAudioBaseSrc
                            ╰──GstAudioSrc
                                ╰──wasapisrc

Factory details

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

Classification:Source/Audio/Hardware

Rank – primary

Plugin – wasapi

Package – GStreamer Bad Plug-ins

Pad Templates

src

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

Directionsrc

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


loopback

“loopback” gboolean

Open the sink device for loopback recording

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


role

“role” GstWasapiDeviceRole *

Role of the device: communications, multimedia, etc

Flags : Read / Write

Default value : console (0)


use-audioclient3

“use-audioclient3” gboolean

Whether to use the Windows 10 AudioClient3 API when available

Flags : Read / Write

Default value : false


Named constants

GstWasapiDeviceRole

Members

console (0) – Games, system notifications, voice commands
multimedia (1) – Music, movies, recorded media
comms (2) – Voice communications

The results of the search are