Software/PulseAudio/Documentation/Developer/Clients/DBus/StreamRestore

D-Bus Interface: Stream Restore Extension

(Back to the toplevel D-Bus Interface page)

TODO: Explain how this extension works.

Objects and their interfaces:

org.PulseAudio.Ext.!StreamRestore1

Properties

!InterfaceRevision

Similarly to the core API, the "major" version of the stream restore extension interface is embedded in the interface name: org.PulseAudio.Ext.StreamRestore1. When changes are made that break compatibility between old clients and new servers the major version is incremented. This property tells the "minor" version, that is, when new features are added to the interface, this version number is incremented so that new clients can check if the server they talk to supports the new features. This documentation defines revision 0.

Entries

All stored policy entries.

Methods

!AddEntry

Adds a new entry to the stream restore database. If there already is an entry with the same name, the old entry is replaced with the new. Or rather, the properties of the new entry replace the properties of the old entry - no new entry object is created.

!GetEntryByName

Find the restore entry with the given name.

Signals

!NewEntry

An entry was added.

!EntryRemoved

An entry was removed.

org.PulseAudio.Ext.!StreamRestore1.!RestoreEntry

Properties

Index

The entry index. This index is specific to the D-Bus interface only: the entry name is the real key property, but entries are assigned an index for generating the object path.

Name

The entry name.

Device

The device to which matching streams are connected. May be an empty string, in which case this entry doesn't dictate the device.

When writing to this property, the change is applied immediately to existing streams.

Volume

The saved volume as (channel position, volume) pairs. May be an empty array, in which case this entry doesn't dictate the stream volume.

When writing to this property, the change is applied immediately to existing streams.

Mute

The saved mute status.

When writing to this property, the change is applied immediately to existing streams.

Methods

Remove

Removes this entry from the stream restore database.

Signals

!DeviceUpdated

The restore entry was assigned a new device.

!VolumeUpdated

The restore entry was assigned a new volume value.

!MuteUpdated

The restore entry was assigned a new mute state.