krähemann.com

AgsAudioUnitClient

AgsAudioUnitClient — core audio connection

Properties

AgsAudioUnitServer * audio-unit-server Read / Write
gchar * client-name Read / Write
gpointer device Read / Write
gpointer port Read / Write

Object Hierarchy

    GObject
    ╰── AgsAudioUnitClient

Implemented Interfaces

AgsAudioUnitClient implements AgsConnectable.

Includes

#include <ags/audio/audio-unit/ags_audio_unit_client.h>

Description

The AgsAudioUnitClient communicates with a core audio instance.

Functions

AGS_AUDIO_UNIT_CLIENT_GET_OBJ_MUTEX()

#define AGS_AUDIO_UNIT_CLIENT_GET_OBJ_MUTEX(obj) (&(((AgsAudioUnitClient *) obj)->obj_mutex))

ags_audio_unit_client_test_flags ()

gboolean
ags_audio_unit_client_test_flags (AgsAudioUnitClient *audio_unit_client,
                                  guint flags);

Test flags to be set on audio_unit_client .

Parameters

audio_unit_client

the AgsAudioUnitClient

 

flags

the flags

 

Returns

TRUE if flags are set, else FALSE

Since: 3.0.0


ags_audio_unit_client_set_flags ()

void
ags_audio_unit_client_set_flags (AgsAudioUnitClient *audio_unit_client,
                                 guint flags);

Enable a feature of audio_unit_client .

Parameters

audio_unit_client

the AgsAudioUnitClient

 

flags

see AgsAudioUnitClientFlags

 

Since: 3.0.0


ags_audio_unit_client_unset_flags ()

void
ags_audio_unit_client_unset_flags (AgsAudioUnitClient *audio_unit_client,
                                   guint flags);

Disable a feature of audio_unit_client .

Parameters

audio_unit_client

the AgsAudioUnitClient

 

flags

see AgsAudioUnitClientFlags

 

Since: 3.0.0


ags_audio_unit_client_find_uuid ()

GList *
ags_audio_unit_client_find_uuid (GList *audio_unit_client,
                                 gchar *client_uuid);

Finds next match of client_uuid in audio_unit_client .

Parameters

audio_unit_client

the GList containing AgsAudioUnitClient.

[element-type AgsAudio.AudioUnitClient][transfer none]

client_uuid

the client uuid to find

 

Returns

the next matching GList or NULL.

[element-type AgsAudio.AudioUnitClient][transfer none]

Since: 3.0.0


ags_audio_unit_client_find ()

GList *
ags_audio_unit_client_find (GList *audio_unit_client,
                            gchar *client_name);

Finds next match of client_name in audio_unit_client .

Parameters

audio_unit_client

the GList containing AgsAudioUnitClient.

[element-type AgsAudio.AudioUnitClient][transfer none]

client_name

the client name to find

 

Returns

the next matching GList or NULL.

[element-type AgsAudio.AudioUnitClient][transfer none]

Since: 3.0.0


ags_audio_unit_client_open ()

void
ags_audio_unit_client_open (AgsAudioUnitClient *audio_unit_client,
                            gchar *client_name);

Open the core audio client's connection and read uuid.

Parameters

audio_unit_client

the AgsAudioUnitClient

 

client_name

the client's name

 

Since: 3.0.0


ags_audio_unit_client_add_device ()

void
ags_audio_unit_client_add_device (AgsAudioUnitClient *audio_unit_client,
                                  GObject *audio_unit_device);

Add audio_unit_device to audio_unit_client .

Parameters

audio_unit_client

the AgsAudioUnitClient

 

audio_unit_device

an AgsAudioUnitDevout or AgsAudioUnitDevin

 

Since: 3.0.0


ags_audio_unit_client_remove_device ()

void
ags_audio_unit_client_remove_device (AgsAudioUnitClient *audio_unit_client,
                                     GObject *audio_unit_device);

Remove audio_unit_device from audio_unit_client .

Parameters

audio_unit_client

the AgsAudioUnitClient

 

audio_unit_device

an AgsAudioUnitDevout or AgsAudioUnitDevin

 

Since: 3.0.0


ags_audio_unit_client_add_port ()

void
ags_audio_unit_client_add_port (AgsAudioUnitClient *audio_unit_client,
                                GObject *audio_unit_port);

Add audio_unit_port to audio_unit_client .

Parameters

audio_unit_client

the AgsAudioUnitClient

 

audio_unit_port

an AgsAudioUnitPort

 

Since: 3.0.0


ags_audio_unit_client_remove_port ()

void
ags_audio_unit_client_remove_port (AgsAudioUnitClient *audio_unit_client,
                                   GObject *audio_unit_port);

Remove audio_unit_port from audio_unit_client .

Parameters

audio_unit_client

the AgsAudioUnitClient

 

audio_unit_port

an AgsAudioUnitPort

 

Since: 3.0.0


ags_audio_unit_client_activate ()

void
ags_audio_unit_client_activate (AgsAudioUnitClient *audio_unit_client);

Activate client.

Parameters

audio_unit_client

the AgsAudioUnitClient

 

Since: 3.0.0


ags_audio_unit_client_deactivate ()

void
ags_audio_unit_client_deactivate (AgsAudioUnitClient *audio_unit_client);

Deactivate client.

Parameters

audio_unit_client

the AgsAudioUnitClient

 

Since: 3.0.0


ags_audio_unit_client_new ()

AgsAudioUnitClient *
ags_audio_unit_client_new (GObject *audio_unit_server);

Create a new instance of AgsAudioUnitClient.

Parameters

audio_unit_server

the assigned AgsAudioUnitServer

 

Returns

the new AgsAudioUnitClient

Since: 3.0.0


AGS_AUDIO_UNIT_CLIENT()

#define AGS_AUDIO_UNIT_CLIENT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_UNIT_CLIENT, AgsAudioUnitClient))

AGS_AUDIO_UNIT_CLIENT_CLASS()

#define AGS_AUDIO_UNIT_CLIENT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_AUDIO_UNIT_CLIENT, AgsAudioUnitClient))

AGS_AUDIO_UNIT_CLIENT_GET_CLASS()

#define AGS_AUDIO_UNIT_CLIENT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_AUDIO_UNIT_CLIENT, AgsAudioUnitClientClass))

AGS_IS_AUDIO_UNIT_CLIENT()

#define AGS_IS_AUDIO_UNIT_CLIENT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUDIO_UNIT_CLIENT))

AGS_IS_AUDIO_UNIT_CLIENT_CLASS()

#define AGS_IS_AUDIO_UNIT_CLIENT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_AUDIO_UNIT_CLIENT))

ags_audio_unit_client_get_type ()

GType
ags_audio_unit_client_get_type ();

Types and Values

enum AgsAudioUnitClientFlags

Enum values to control the behavior or indicate internal state of AgsAudioUnitClient by enable/disable as flags.

Members

AGS_AUDIO_UNIT_CLIENT_ADDED_TO_REGISTRY

the AudioUnit client was added to registry, see AgsConnectable::add_to_registry()

 

AGS_AUDIO_UNIT_CLIENT_CONNECTED

indicates the client was connected by calling AgsConnectable::connect()

 

AGS_AUDIO_UNIT_CLIENT_ACTIVATED

the client was activated

 

AGS_AUDIO_UNIT_CLIENT_READY

the client is ready

 

AGS_TYPE_AUDIO_UNIT_CLIENT

#define AGS_TYPE_AUDIO_UNIT_CLIENT                (ags_audio_unit_client_get_type())

struct AgsAudioUnitClient

struct AgsAudioUnitClient;

struct AgsAudioUnitClientClass

struct AgsAudioUnitClientClass {
  GObjectClass gobject;
};

Property Details

The “audio-unit-server” property

  “audio-unit-server”        AgsAudioUnitServer *

The assigned AgsAudioUnitServer.

Owner: AgsAudioUnitClient

Flags: Read / Write

Since: 3.0.0


The “client-name” property

  “client-name”              gchar *

The audio-unit client name.

Owner: AgsAudioUnitClient

Flags: Read / Write

Default value: NULL

Since: 3.0.0


The “device” property

  “device”                   gpointer

The assigned devices.

[transfer full]

Owner: AgsAudioUnitClient

Flags: Read / Write

Since: 3.0.0


The “port” property

  “port”                     gpointer

The assigned ports.

[transfer full]

Owner: AgsAudioUnitClient

Flags: Read / Write

Since: 3.0.0