HinawaSndTscm

HinawaSndTscm — A state reader for Tascam FireWire models

Functions

Signals

void control Run Last

Object Hierarchy

    GObject
    ╰── HinawaSndUnit
        ╰── HinawaSndTscm

Includes

#include <snd_tscm.h>

Description

A HinawaSndTscm is an application of protocol defined by TASCAM. This inherits HinawaSndUnit.

Functions

hinawa_snd_tscm_new ()

HinawaSndTscm *
hinawa_snd_tscm_new (void);

Instantiate HinawaSndTscm object and return the instance.

Returns

an instance of HinawaSndTscm.

Since: 1.3.


hinawa_snd_tscm_open ()

void
hinawa_snd_tscm_open (HinawaSndTscm *self,
                      gchar *path,
                      GError **exception);

Open ALSA hwdep character device and check it for Dg00x 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: 1.1


hinawa_snd_tscm_get_state ()

const guint32 *
hinawa_snd_tscm_get_state (HinawaSndTscm *self,
                           GError **exception);

Get the latest states of target device.

Parameters

self

A HinawaSndTscm

 

exception

A GError. Error can be generated with domain of hinawa_snd_unit_error_quark().

 

Returns

state image.

[element-type guint32][array fixed-size=64][transfer none]

Since: 1.1

Signal Details

The “control” signal

void
user_function (HinawaSndTscm *self,
               guint          index,
               guint          before,
               guint          after,
               gpointer       user_data)

When TASCAM FireWire unit transfer control message, the “control” signal is emitted.

Parameters

self

A HinawaSndTscm

 

index

the numerical index on image of status and control info.

 

before

the value of info before changed.

 

after

the value of info after changed.

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 1.1