Top | ![]() |
![]() |
![]() |
![]() |
A HinawaSndMotu is an application of asynchronous notification defined by Mark of the Unicorn (MOTU). This inherits HinawaSndUnit.
HinawaSndMotu *
hinawa_snd_motu_new (void
);
Instantiate HinawaSndMotu object and return the instance.
Since: 1.3.
void hinawa_snd_motu_open (HinawaSndMotu *self
,gchar *path
,GError **exception
);
Open ALSA hwdep character device and check it for Motu 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.8
void hinawa_snd_motu_read_register_dsp_parameter (HinawaSndMotu *self
,HinawaSndMotuRegisterDspParameter *const *param
,GError **exception
);
Read parameter for register DSP models.
self |
||
param |
[inout] | |
exception |
A GError. Error can be generated with two domains; |
Since: 2.4
void hinawa_snd_motu_read_register_dsp_meter (HinawaSndMotu *self
,guint8 *const meter[48]
,GError **exception
);
Read data of meter information for register DSP models.
self |
||
meter |
The data of meter. Index 0 to 23 for inputs and index 24 to 47 for outputs. |
[array fixed-size=48][inout] |
exception |
A GError. Error can be generated with two domains; |
Since: 2.4
void hinawa_snd_motu_read_command_dsp_meter (HinawaSndMotu *self
,gfloat *const meter[400]
,GError **exception
);
Read data of meter information for command DSP models.
self |
||
meter |
The data for meter. |
[array fixed-size=400][inout] |
exception |
A GError. Error can be generated with two domains; |
Since: 2.4
“notified”
signalvoid user_function (HinawaSndMotu *self, guint message, gpointer user_data)
When Motu 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
Since: 0.8
“register-dsp-changed”
signalvoid user_function (HinawaSndMotu *self, gpointer events, guint length, gpointer user_data)
When MOTU register DSP models transfer events by messages in the sequence of isochronous
packet, the “register-dsp-changed” signal is emit.
The event consists of encoded data. The most significant byte is the type of message. The
next two bytes are identifier 0 and 1. The least significant byte is value. The meaning
of identifier 0, 1 and value is decided depending on the type. For detail, see
sound/firewire/motu/motu-register-dsp-message-parser.c
in Linux kernel.
self |
||
events |
The array with element for unsigned 32 bit encoded data. |
[element-type guint32][array length=length] |
length |
The length of events. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.4