| Top |
| HinawaSndDice * | hinawa_snd_dice_new () |
| void | hinawa_snd_dice_open () |
| void | hinawa_snd_dice_transaction () |
| void | hinawa_snd_dice_transact () |
A HinawaSndDice listen to Dice notification and generates signal when received. This inherits HinawaSndUnit.
HinawaSndDice *
hinawa_snd_dice_new (void);
Instantiate HinawaSndDice object and return the instance.
Since: 1.3.
void hinawa_snd_dice_open (HinawaSndDice *self,gchar *path,GError **exception);
Open ALSA hwdep character device and check it for Dice devices.
void hinawa_snd_dice_transaction (HinawaSndDice *self,guint64 addr,const guint32 *frame,gsize frame_count,guint32 bit_flag,GError **exception);
Execute write transactions to the given address, then wait and check notification.
self |
||
addr |
A destination address of target device |
|
frame |
An array with elements for quadlet data to transmit. |
[array length=frame_count][in] |
frame_count |
The number of quadlets in the frame. |
|
bit_flag |
bit flag to wait |
|
exception |
A GError |
Since: 1.4.
void hinawa_snd_dice_transact (HinawaSndDice *self,guint64 addr,GArray *frame,guint32 bit_flag,GError **exception);
hinawa_snd_dice_transact has been deprecated since version 1.4 and should not be used in newly-written code.
Use hinawa_snd_dice_transaction(), instead.
Execute write transactions to the given address, then wait and check notification.
“notified” signalvoid user_function (HinawaSndDice *self, gulong message, gpointer user_data)
When Dice models transfer notification, the ::notified signal is generated.
self |
||
message |
A notification message |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last