Top | ![]() |
![]() |
![]() |
![]() |
HinawaSndUnit * | hinawa_snd_unit_new () |
void | hinawa_snd_unit_open () |
void | hinawa_snd_unit_lock () |
void | hinawa_snd_unit_unlock () |
void | hinawa_snd_unit_listen () |
void | hinawa_snd_unit_unlisten () |
void | hinawa_snd_unit_create_source () |
GObject ╰── HinawaFwUnit ╰── 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.
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.
void hinawa_snd_unit_lock (HinawaSndUnit *self
,GError **exception
);
Disallow ALSA to start kernel-streaming.
void hinawa_snd_unit_unlock (HinawaSndUnit *self
,GError **exception
);
Allow ALSA to start kernel-streaming.
void hinawa_snd_unit_listen (HinawaSndUnit *self
,GError **exception
);
hinawa_snd_unit_listen
has been deprecated since version 1.4 and should not be used in newly-written code.
Instead, use GSource retrieved by a call of
hinawa_snd_unit_create_source()
. Then use GMainContext and
GMainLoop of GLib for event loop.
Start listening to events.
void
hinawa_snd_unit_unlisten (HinawaSndUnit *self
);
hinawa_snd_unit_unlisten
has been deprecated since version 1.4 and should not be used in newly-written code.
Instead, maintain GMainContext and GMainLoop with GSource
retrieved by a call of hinawa_snd_unit_create_source()
.
Stop listening to events.
void hinawa_snd_unit_create_source (HinawaSndUnit *self
,GSource **gsrc
,GError **exception
);
Create Gsource for GMainContext to dispatch events for the sound device.
Since: 1.4.
“card”
property “card” gint
A numerical ID for ALSA sound card.
Flags: Read
Allowed values: >= 0
Default value: 0
“device”
property “device” gchar *
A name of special file as FireWire unit.
Flags: Read
Default value: NULL
“guid”
property “guid” guint64
Global unique ID for this firewire unit.
Flags: Read
Allowed values: <= 4294967295
Default value: 0
“listening”
property “listening” gboolean
Whether this device is under listening.
Flags: Read
Default value: FALSE
“streaming”
property “streaming” gboolean
Whether this device is streaming or not.
Flags: Read
Default value: FALSE
“type”
property“type” HinawaSndUnitType
The value of HinawaSndUnitType enumerators.
Flags: Read
Default value: HINAWA_SND_UNIT_TYPE_DICE
“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