Constructor

PwgStreamnew_audio_capture

since: 0.1

Declaration [src]

PwgStream*
pwg_stream_new_audio_capture (
  const char* target_object,
  _Bool monitor
)

Description [src]

Creates an audio capture stream that reports copied/reduced level data to high-level language bindings.

Stability: Unstable

Available since: 0.1

Parameters

target_object

Type: const char*

PipeWire node name or object serial to capture from.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
monitor

Type: _Bool

Whether to capture sink monitor audio.

Return value

Type: PwgStream

A new stream object.

The caller of the function takes ownership of the data, and is responsible for freeing it.