Class
PwgStream
since: 0.1
Description [src]
final class Pwg.Stream : GObject.Object
{
/* No available fields */
}
App-owned PipeWire stream wrapper.
This is the primary API for app-owned audio streams. The current constructor supports capture streams and reports negotiated format, reduced level data, and optional copied audio blocks to bindings.
Stability: Unstable
Available since: 0.1
Constructors
pwg_stream_new_audio_capture
Creates an audio capture stream that reports copied/reduced level data to high-level language bindings.
since: 0.1
Instance methods
pwg_stream_get_requested_channels
Gets the requested channel count used when the stream is started.
since: 0.1
pwg_stream_get_requested_rate
Gets the requested sample rate used when the stream is started.
since: 0.1
pwg_stream_get_requested_sample_format
Gets the requested sample format used when the stream is started.
since: 0.1
pwg_stream_set_deliver_audio_blocks
Enables or disables the PwgStream::audio-block signal. Audio block delivery
copies realtime PipeWire buffers and should be enabled only by consumers that
need sample data.
since: 0.1
pwg_stream_set_pipewire_property
Sets an app-specific PipeWire stream property override before the stream is
started. This can be used for bindable identity and policy hints such as
node.name, node.description, application.name, media.class,
media.name, media.category, or media.role.
since: 0.1
pwg_stream_set_requested_format
Sets the raw audio format requested when the stream is started.
since: 0.1
Properties
Pwg.Stream:audio-format
Current negotiated audio format, or NULL before format negotiation.
since: 0.1
Signals
Pwg.Stream::audio-block
Emitted from the object’s construction thread-default main context when a copied audio block is available. Enable this signal with pwg_stream_set_deliver_audio_blocks().
since: 0.1
Pwg.Stream::level
Emitted from the object’s construction thread-default main context when a new peak value is available.
since: 0.1
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.