AgsPulseClient

AgsPulseClient — pulseaudio connection

Functions

Properties

char * client-name Read / Write
gpointer device Read / Write
gpointer port Read / Write
AgsPulseServer * pulse-server Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsPulseClient

Implemented Interfaces

AgsPulseClient implements AgsConnectable.

Includes

#include <ags/audio/pulse/ags_pulse_client.h>

Description

The AgsPulseClient communicates with a pulseaudio instance.

Functions

AGS_PULSE_CLIENT_GET_OBJ_MUTEX()

#define AGS_PULSE_CLIENT_GET_OBJ_MUTEX(obj) (&(((AgsPulseClient *) obj)->obj_mutex))

ags_pulse_client_test_flags ()

gboolean
ags_pulse_client_test_flags (AgsPulseClient *pulse_client,
                             guint flags);

Test flags to be set on pulse_client .

Parameters

pulse_client

the AgsPulseClient

 

flags

the flags

 

Returns

TRUE if flags are set, else FALSE

Since: 3.0.0


ags_pulse_client_set_flags ()

void
ags_pulse_client_set_flags (AgsPulseClient *pulse_client,
                            guint flags);

Enable a feature of pulse_client .

Parameters

pulse_client

the AgsPulseClient

 

flags

see AgsPulseClientFlags

 

Since: 3.0.0


ags_pulse_client_unset_flags ()

void
ags_pulse_client_unset_flags (AgsPulseClient *pulse_client,
                              guint flags);

Disable a feature of pulse_client .

Parameters

pulse_client

the AgsPulseClient

 

flags

see AgsPulseClientFlags

 

Since: 3.0.0


ags_pulse_client_find_uuid ()

GList *
ags_pulse_client_find_uuid (GList *pulse_client,
                            gchar *client_uuid);

Finds next match of client_uuid in pulse_client .

Parameters

pulse_client

the GList containing AgsPulseClient.

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

client_uuid

the client uuid to find

 

Returns

the next matching GList or NULL.

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

Since: 3.0.0


ags_pulse_client_find ()

GList *
ags_pulse_client_find (GList *pulse_client,
                       gchar *client_name);

Finds next match of client_name in pulse_client .

Parameters

pulse_client

the GList containing AgsPulseClient.

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

client_name

the client name to find

 

Returns

the next matching GList or NULL.

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

Since: 3.0.0


ags_pulse_client_open ()

void
ags_pulse_client_open (AgsPulseClient *pulse_client,
                       gchar *client_name);

Open the pulseaudio client's connection and read uuid.

Parameters

pulse_client

the AgsPulseClient

 

client_name

the client's name

 

Since: 3.0.0


ags_pulse_client_close ()

void
ags_pulse_client_close (AgsPulseClient *pulse_client);

Close the pulseaudio client's connection.

Parameters

pulse_client

the AgsPulseClient

 

Since: 3.0.0


ags_pulse_client_add_device ()

void
ags_pulse_client_add_device (AgsPulseClient *pulse_client,
                             GObject *pulse_device);

Add pulse_device to pulse_client .

Parameters

pulse_client

the AgsPulseClient

 

pulse_device

an AgsPulseDevout or AgsPulseDevin

 

Since: 3.0.0


ags_pulse_client_remove_device ()

void
ags_pulse_client_remove_device (AgsPulseClient *pulse_client,
                                GObject *pulse_device);

Remove pulse_device from pulse_client .

Parameters

pulse_client

the AgsPulseClient

 

pulse_device

an AgsPulseDevout or AgsPulseDevin

 

Since: 3.0.0


ags_pulse_client_add_port ()

void
ags_pulse_client_add_port (AgsPulseClient *pulse_client,
                           GObject *pulse_port);

Add pulse_port to pulse_client .

Parameters

pulse_client

the AgsPulseClient

 

pulse_port

an AgsPulsePort

 

Since: 3.0.0


ags_pulse_client_remove_port ()

void
ags_pulse_client_remove_port (AgsPulseClient *pulse_client,
                              GObject *pulse_port);

Remove pulse_port from pulse_client .

Parameters

pulse_client

the AgsPulseClient

 

pulse_port

an AgsPulsePort

 

Since: 3.0.0


ags_pulse_client_activate ()

void
ags_pulse_client_activate (AgsPulseClient *pulse_client);

Activate client.

Parameters

pulse_client

the AgsPulseClient

 

Since: 3.0.0


ags_pulse_client_deactivate ()

void
ags_pulse_client_deactivate (AgsPulseClient *pulse_client);

Deactivate client.

Parameters

pulse_client

the AgsPulseClient

 

Since: 3.0.0


ags_pulse_client_new ()

AgsPulseClient *
ags_pulse_client_new (GObject *pulse_server);

Create a new instance of AgsPulseClient.

Parameters

pulse_server

the assigned AgsPulseServer

 

Returns

the new AgsPulseClient

Since: 3.0.0


AGS_IS_PULSE_CLIENT()

#define AGS_IS_PULSE_CLIENT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PULSE_CLIENT))

AGS_IS_PULSE_CLIENT_CLASS()

#define AGS_IS_PULSE_CLIENT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_PULSE_CLIENT))

AGS_PULSE_CLIENT()

#define AGS_PULSE_CLIENT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PULSE_CLIENT, AgsPulseClient))

AGS_PULSE_CLIENT_CLASS()

#define AGS_PULSE_CLIENT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_PULSE_CLIENT, AgsPulseClient))

AGS_PULSE_CLIENT_GET_CLASS()

#define AGS_PULSE_CLIENT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_PULSE_CLIENT, AgsPulseClientClass))

ags_pulse_client_get_type ()

GType
ags_pulse_client_get_type ();

Types and Values

enum AgsPulseClientFlags

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

Members

AGS_PULSE_CLIENT_ADDED_TO_REGISTRY

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

 

AGS_PULSE_CLIENT_CONNECTED

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

 

AGS_PULSE_CLIENT_ACTIVATED

the client was activated

 

AGS_PULSE_CLIENT_READY

the client is ready

 

AGS_TYPE_PULSE_CLIENT

#define AGS_TYPE_PULSE_CLIENT                (ags_pulse_client_get_type())

struct AgsPulseClient

struct AgsPulseClient;

struct AgsPulseClientClass

struct AgsPulseClientClass {
  GObjectClass gobject;
};

Property Details

The “client-name” property

  “client-name”              char *

The pulseaudio client name.

Owner: AgsPulseClient

Flags: Read / Write

Default value: NULL

Since: 3.0.0


The “device” property

  “device”                   gpointer

The assigned devices.

[transfer full]

Owner: AgsPulseClient

Flags: Read / Write

Since: 3.0.0


The “port” property

  “port”                     gpointer

The assigned ports.

[transfer full]

Owner: AgsPulseClient

Flags: Read / Write

Since: 3.0.0


The “pulse-server” property

  “pulse-server”             AgsPulseServer *

The assigned AgsPulseServer.

Owner: AgsPulseClient

Flags: Read / Write

Since: 3.0.0