HinawaSndMotu

HinawaSndMotu — A notification listener for Motu models

Functions

Signals

Object Hierarchy

    GObject
    ╰── HinawaSndUnit
        ╰── HinawaSndMotu

Includes

#include <snd_motu.h>

Description

A HinawaSndMotu is an application of asynchronous notification defined by Mark of the Unicorn (MOTU). This inherits HinawaSndUnit.

Functions

hinawa_snd_motu_new ()

HinawaSndMotu *
hinawa_snd_motu_new (void);

Instantiate HinawaSndMotu object and return the instance.

Returns

an instance of HinawaSndMotu.

Since: 1.3.


hinawa_snd_motu_open ()

void
hinawa_snd_motu_open (HinawaSndMotu *self,
                      gchar *path,
                      GError **exception);

Open ALSA hwdep character device and check it for Motu devices.

Parameters

self

A HinawaSndUnit

 

path

A full path of a special file for ALSA hwdep character device

 

exception

A GError. Error can be generated with three domains; g_file_error_quark(), hinawa_fw_node_error_quark(), and hinawa_snd_unit_error_quark().

 

Since: 0.8


hinawa_snd_motu_read_register_dsp_parameter ()

void
hinawa_snd_motu_read_register_dsp_parameter
                               (HinawaSndMotu *self,
                                HinawaSndMotuRegisterDspParameter *const *param,
                                GError **exception);

Read parameter for register DSP models.

Parameters

self

A HinawaSndMotu.

 

param

A HinawaSndMotuRegisterDspParameter.

[inout]

exception

A GError. Error can be generated with two domains; g_file_error_quark(), and hinawa_snd_unit_error_quark().

 

Since: 2.4


hinawa_snd_motu_read_register_dsp_meter ()

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.

Parameters

self

A HinawaSndMotu

 

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; g_file_error_quark(), and hinawa_snd_unit_error_quark().

 

Since: 2.4


hinawa_snd_motu_read_command_dsp_meter ()

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.

Parameters

self

A HinawaSndMotu

 

meter

The data for meter.

[array fixed-size=400][inout]

exception

A GError. Error can be generated with two domains; g_file_error_quark(), and hinawa_snd_unit_error_quark().

 

Since: 2.4

Signal Details

The “notified” signal

void
user_function (HinawaSndMotu *self,
               guint          message,
               gpointer       user_data)

When Motu models transfer notification, the “notified” signal is generated.

Parameters

self

A HinawaSndMotu

 

message

A notification message

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 0.8


The “register-dsp-changed” signal

void
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.

Parameters

self

A HinawaSndMotu

 

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