| Top |
| GQuark | hinawa_snd_unit_error_quark () |
| HinawaSndUnit * | hinawa_snd_unit_new () |
| void | hinawa_snd_unit_open () |
| void | hinawa_snd_unit_get_node () |
| void | hinawa_snd_unit_lock () |
| void | hinawa_snd_unit_unlock () |
| void | hinawa_snd_unit_create_source () |
GObject
╰── HinawaSndUnit
├── HinawaSndDg00x
├── HinawaSndDice
├── HinawaSndEfw
├── HinawaSndMotu
╰── HinawaSndTscm
This class is an application of ALSA FireWire stack. Any functionality which ALSA drivers in the stack can be available.
GQuark
hinawa_snd_unit_error_quark ();
Return the GQuark for error domain of GError which has code in HinawaSndUnitError.
Since: 2.1
HinawaSndUnit *
hinawa_snd_unit_new (void);
Instantiate HinawaSndUnit object and return the instance.
Since: 1.3.
void hinawa_snd_unit_open (HinawaSndUnit *self,gchar *path,GError **exception);
Open ALSA hwdep character device and check it for FireWire sound devices.
self |
||
path |
A full path of a special file for ALSA hwdep character device |
|
exception |
A GError. Error can be generated with three domains; |
Since: 0.4
void hinawa_snd_unit_get_node (HinawaSndUnit *self,HinawaFwNode **node);
Retrieve an instance of HinawaFwNode associated to the given unit.
Since: 2.0.
void hinawa_snd_unit_lock (HinawaSndUnit *self,GError **exception);
Disallow ALSA to start kernel-streaming.
self |
||
exception |
A GError. Error can be generated with domain of |
Since: 0.3
void hinawa_snd_unit_unlock (HinawaSndUnit *self,GError **exception);
Allow ALSA to start kernel-streaming.
self |
||
exception |
A GError. Error can be generated with domain of |
Since: 0.3
void hinawa_snd_unit_create_source (HinawaSndUnit *self,GSource **gsrc,GError **exception);
Create Gsource for GMainContext to dispatch events for the sound device.
self |
||
gsrc |
A GSource. |
[out] |
exception |
A GError. Error can be generated with domain with |
Since: 1.4.
“card” property “card” guint
The numeric ID for ALSA sound card.
Owner: HinawaSndUnit
Flags: Read
Default value: 0
Since: 2.0
“device” property “device” char *
A name of special file as FireWire unit.
Owner: HinawaSndUnit
Flags: Read
Default value: NULL
Since: 0.3
“guid” property “guid” guint64
Global unique ID for this firewire unit.
Owner: HinawaSndUnit
Flags: Read
Default value: 0
Since: 0.4
“streaming” property “streaming” gboolean
Whether this device is streaming or not.
Owner: HinawaSndUnit
Flags: Read
Default value: FALSE
Since: 0.4
“type” property“type” HinawaSndUnitType
The value of HinawaSndUnitType enumerators.
Owner: HinawaSndUnit
Flags: Read
Default value: HINAWA_SND_UNIT_TYPE_DICE
Since: 1.0
“disconnected” signalvoid user_function (HinawaSndUnit *self, gpointer user_data)
When the sound card is not available anymore due to unbinding driver
or hot unplugging, this signal is emit. The owner of this object
should call g_object_free() as quickly as possible to release ALSA
hwdep character device.
Flags: Run Last
Since: 2.0
“lock-status” signalvoid user_function (HinawaSndUnit *self, gboolean state, gpointer user_data)
When ALSA kernel-streaming status is changed, this “lock-status” signal is generated.
self |
||
state |
|
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 0.3