Hitaki.AlsaFirewire¶
- Implementations:
Hitaki.SndDice
,Hitaki.SndDigi00x
,Hitaki.SndEfw
,Hitaki.SndFireface
,Hitaki.SndMotu
,Hitaki.SndTascam
,Hitaki.SndUnit
Methods¶
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
The numeric identifier for sound card |
||
r |
Global unique identifier for the node in IEEE 1394 bus. |
||
r/w/en |
Whether the sound card is unavailable |
||
r/w/en |
Whether the associated unit is locked or not |
||
r |
The name of node device in Linux FireWire subsystem |
||
r |
The type of sound unit |
Signals¶
None
Fields¶
None
Class Details¶
- class Hitaki.AlsaFirewire¶
- Bases:
- Structure:
An interface to operate ALSA HwDep character device for Audio and Music unit in IEEE 1394 bus. All of driver in ALSA firewire stack allow userspace application to use specific function via ALSA HwDep character device. The function includes common and specific parts. The [iface`AlsaFirewire`] is an object interface to operate the character device for the common functions.
- create_source()¶
- Raises:
- Returns:
True
if the overall operation finished successfully, elseFalse
.- source:
A [struct`GLib`.Source] to handle events from ALSA HwDep character device.
- Return type:
(
bool
, source:GLib.Source
)
Allocate [struct`GLib`.Source] to handle events from ALSA HwDep character device.
- lock()¶
-
Lock kernel driver bound to the associated ALSA HwDep character device so that it is prohibited to start packet streaming.
- open(path, open_flag)¶
- Parameters:
- Raises:
- Returns:
True
if the overall operation finished successfully, elseFalse
.- Return type:
Open the special file for ALSA HwDep character device.
- unlock()¶
-
Unlock kernel driver bound to the associated ALSA HwDep character device so that it can start packet streaming.
- do_create_source() virtual¶
- Returns:
True
if the overall operation finished successfully, elseFalse
.- source:
A [struct`GLib`.Source] to handle events from ALSA HwDep character device.
- Return type:
(
bool
, source:GLib.Source
)
Allocate [struct`GLib`.Source] to handle events from ALSA HwDep character device.
- do_lock() virtual¶
-
Lock kernel driver bound to the associated ALSA HwDep character device so that it is prohibited to start packet streaming.
Property Details¶
- Hitaki.AlsaFirewire.props.card_id¶
-
The numeric identifier for sound card.
- Hitaki.AlsaFirewire.props.guid¶
-
Global unique identifier for the node in IEEE 1394 bus.
- Hitaki.AlsaFirewire.props.is_disconnected¶
- Name:
is-disconnected
- Type:
- Default Value:
- Flags:
Whether the sound card is unavailable. It becomes
False
when the sound card is removed or driver is unbound to it. Then the owner of this object should call [method`GObject`.Object.unref] as quickly as possible to release ALSA hwdep character device.
- Hitaki.AlsaFirewire.props.is_locked¶
- Name:
is-locked
- Type:
- Default Value:
- Flags:
Whether the associated unit is locked or not to start packet streaming.
- Hitaki.AlsaFirewire.props.node_device¶
-
The name of node device in Linux FireWire subsystem which owns the unit; e.g.
fw1
.
- Hitaki.AlsaFirewire.props.unit_type¶
- Name:
unit-type
- Type:
- Default Value:
- Flags:
The type of sound unit.