Wp.SiAdapter¶
- Implementations:
None
Methods¶
|
|
|
Virtual Methods¶
|
|
Properties¶
None
Signals¶
Name |
Short Description |
---|---|
Fields¶
None
Class Details¶
- class Wp.SiAdapter¶
- Bases:
- Structure:
An interface for port adapters
- get_ports_format()¶
- Returns:
The format used to configure the ports of the adapter session item. Some items automatically choose a format when being activated, others never set a format on activation and the user needs to manually set it externally with
Wp.SiAdapter.set_ports_format
().- mode:
the mode
- Return type:
Gets the format used to configure the adapter session item’s ports.
- get_ports_state()¶
- Returns:
The state of the ports
- Return type:
Gets the ports state.
New in version 0.4.10.
- set_ports_format(format, mode, callback, *data)¶
- Parameters:
Sets the format and configures the adapter session item ports using the given format.
The result of the operation can be checked using the
Wp.SiAdapter.set_ports_format_finish
() API. If format isNone
, the adapter will be configured with the default format. If mode isNone
, the adapter will use “dsp” mode.
- set_ports_format_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – the async result- Raises:
- Returns:
- Return type:
Finishes the operation started by wp_si_adapter_set_format(). This is meant to be called in the callback that was passed to that method.
- do_get_ports_format() virtual¶
- Returns:
The format used to configure the ports of the adapter session item. Some items automatically choose a format when being activated, others never set a format on activation and the user needs to manually set it externally with
Wp.SiAdapter.set_ports_format
().- mode:
the mode
- Return type:
Gets the format used to configure the adapter session item’s ports.
- do_get_ports_state() virtual¶
- Returns:
The state of the ports
- Return type:
Gets the ports state.
New in version 0.4.10.
- do_set_ports_format(format, mode, callback, data) virtual¶
- Parameters:
Sets the format and configures the adapter session item ports using the given format.
The result of the operation can be checked using the
Wp.SiAdapter.set_ports_format_finish
() API. If format isNone
, the adapter will be configured with the default format. If mode isNone
, the adapter will use “dsp” mode.
- do_set_ports_format_finish(res) virtual¶
- Parameters:
res (
Gio.AsyncResult
) – the async result- Returns:
- Return type:
Finishes the operation started by wp_si_adapter_set_format(). This is meant to be called in the callback that was passed to that method.
Signal Details¶
- Wp.SiAdapter.signals.adapter_ports_state_changed(si_adapter, object, p0)¶
- Signal Name:
adapter-ports-state-changed
- Flags:
- Parameters:
si_adapter (
Wp.SiAdapter
) – The object which received the signalobject (
Wp.SiAdapterPortsState
) –p0 (
Wp.SiAdapterPortsState
) –