HinawaSndDg00x

HinawaSndDg00x — A notification listener for Dg00x models

Functions

Signals

void message Run Last

Object Hierarchy

    GObject
    ╰── HinawaSndUnit
        ╰── HinawaSndDg00x

Includes

#include <snd_dg00x.h>

Description

A HinawaSndDg00x listen to Dg00x notification and generates signal when received. This inherits HinawaSndUnit.

Functions

hinawa_snd_dg00x_new ()

HinawaSndDg00x *
hinawa_snd_dg00x_new (void);

Instantiate HinawaSndDg00x object and return the instance.

Returns

an instance of HinawaSndDg00x.

Since: 1.3.


hinawa_snd_dg00x_open ()

void
hinawa_snd_dg00x_open (HinawaSndDg00x *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: 0.7

Signal Details

The “message” signal

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

When Dg00x models transfer notification, the “message” signal is generated.

Parameters

self

A HinawaSndDg00x

 

message

A message

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last

Since: 0.7