HinawaSndEfw

HinawaSndEfw — A transaction executor for Fireworks models

Functions

Object Hierarchy

    GObject
    ╰── HinawaFwUnit
        ╰── HinawaSndUnit
            ╰── HinawaSndEfw

Description

A HinawaSndEfw is an application of Echo Fireworks Transaction (EFT). This inherits HinawaSndUnit.

Functions

hinawa_snd_efw_new ()

HinawaSndEfw *
hinawa_snd_efw_new (void);

Instantiate HinawaSndEfw object and return the instance.

Returns

an instance of HinawaSndEfw.

Since: 1.3.


hinawa_snd_efw_open ()

void
hinawa_snd_efw_open (HinawaSndEfw *self,
                     gchar *path,
                     GError **exception);

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

Parameters

self

A HinawaSndUnit

 

path

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

 

exception

A GError

 

hinawa_snd_efw_transaction ()

void
hinawa_snd_efw_transaction (HinawaSndEfw *self,
                            guint category,
                            guint command,
                            const guint32 *args,
                            gsize arg_count,
                            guint32 *const *params,
                            gsize *param_count,
                            GError **exception);

Execute transaction according to Echo Fireworks Transaction protocol.

Parameters

self

A HinawaSndEfw.

 

category

one of category for the transaction.

 

command

one of commands for the transaction.

 

args

An array with elements for quadlet data as arguments for command.

[array length=arg_count][in][nullable]

arg_count

The number of quadlets in the args array.

 

params

An array with elements for quadlet data to save parameters in response. Callers should give it for buffer with enough space against the request since this library performs no reallocation. Due to the reason, the value of this argument should point to the pointer to the array and immutable. The content of array is mutable for parameters in response.

[array length=param_count][inout]

param_count

The number of quadlets in the params array.

 

exception

A GError.

 

Since: 1.4.


hinawa_snd_efw_transact ()

void
hinawa_snd_efw_transact (HinawaSndEfw *self,
                         guint category,
                         guint command,
                         GArray *args,
                         GArray *params,
                         GError **exception);

hinawa_snd_efw_transact has been deprecated since version 1.4 and should not be used in newly-written code.

Use hinawa_snd_efw_transaction(), instead.

Execute transaction according to Echo Fireworks Transaction protocol.

Parameters

self

A HinawaSndEfw

 

category

one of category for the transact

 

command

one of commands for the transact

 

args

arguments for the transaction.

[nullable][element-type guint32][array][in]

params

return params.

[element-type guint32][array][out caller-allocates]

exception

A GError

 

Types and Values