AgsSoundServer

AgsSoundServer — access sound servers

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── AgsSoundServer

Includes

#include <ags/object/ags_sound_server.h>

Description

The AgsSoundServer interface gives you a unique access sound servers.

Functions

ags_sound_server_set_url ()

void
ags_sound_server_set_url (AgsSoundServer *sound_server,
                          gchar *url);

Sets the url of sound_server .

Parameters

sound_server

The AgsSoundServer

 

url

the url to set

 

Since: 3.0.0


ags_sound_server_get_url ()

gchar *
ags_sound_server_get_url (AgsSoundServer *sound_server);

Gets the URL of sound_server .

Parameters

sound_server

the AgsSoundServer

 

Returns

the URL as string

Since: 3.0.0


ags_sound_server_set_ports ()

void
ags_sound_server_set_ports (AgsSoundServer *sound_server,
                            guint *port,
                            guint port_count);

ags_sound_server_get_ports ()

guint *
ags_sound_server_get_ports (AgsSoundServer *sound_server,
                            guint *port_count);

Gets the ports of sound_server .

Parameters

sound_server

the AgsSoundServer

 

port_count

the number of ports returned

 

Returns

the port as string NULL-terminated array

Since: 3.0.0


ags_sound_server_set_soundcard ()

void
ags_sound_server_set_soundcard (AgsSoundServer *sound_server,
                                gchar *client_uuid,
                                GList *soundcard);

Sets the soundcard at client_uuid .

Parameters

sound_server

The AgsSoundServer

 

client_uuid

the location to fetch from

 

soundcard

the soundcard to set.

[element-type GObject][transfer full]

Since: 3.0.0


ags_sound_server_get_soundcard ()

GList *
ags_sound_server_get_soundcard (AgsSoundServer *sound_server,
                                gchar *client_uuid);

Gets the soundcard of sound_server associated with client_uuid .

Parameters

client_uuid

the client uuid

 

sound_server

the AgsSoundServer

 

Returns

the soundcard as GList.

[element-type GObject][transfer full]

Since: 3.0.0


ags_sound_server_set_sequencer ()

void
ags_sound_server_set_sequencer (AgsSoundServer *sound_server,
                                gchar *client_uuid,
                                GList *sequencer);

Sets the sequencer at client_uuid .

Parameters

sound_server

The AgsSoundServer

 

client_uuid

the location to fetch from

 

sequencer

the sequencer to set.

[element-type GObject][transfer full]

Since: 3.0.0


ags_sound_server_get_sequencer ()

GList *
ags_sound_server_get_sequencer (AgsSoundServer *sound_server,
                                gchar *client_uuid);

Gets the sequencer of sound_server associated with client_uuid .

Parameters

client_uuid

the client uuid

 

sound_server

the AgsSoundServer

 

Returns

the sequencer as GList.

[element-type GObject][transfer full]

Since: 3.0.0


ags_sound_server_register_soundcard ()

GObject *
ags_sound_server_register_soundcard (AgsSoundServer *sound_server,
                                     gboolean is_output);

Fetches soundcard of sound_server .

Parameters

sound_server

The AgsSoundServer

 

is_output

if TRUE the used as sink, else as source

 

Returns

a new AgsSoundcard.

[transfer full]

Since: 3.0.0


ags_sound_server_unregister_soundcard ()

void
ags_sound_server_unregister_soundcard (AgsSoundServer *sound_server,
                                       GObject *soundcard);

Releases soundcard in sound_server .

Parameters

sound_server

The AgsSoundServer

 

soundcard

the AgsSoundcard

 

Since: 3.0.0


ags_sound_server_register_sequencer ()

GObject *
ags_sound_server_register_sequencer (AgsSoundServer *sound_server,
                                     gboolean is_output);

Fetches sequencer of sound_server .

Parameters

sound_server

The AgsSoundServer

 

is_output

if TRUE the used as sink, else as source

 

Returns

a new AgsSequencer.

[transfer full]

Since: 3.0.0


ags_sound_server_unregister_sequencer ()

void
ags_sound_server_unregister_sequencer (AgsSoundServer *sound_server,
                                       GObject *sequencer);

Releases sequencer in sound_server .

Parameters

sound_server

The AgsSoundServer

 

sequencer

the AgsSequencer

 

Since: 3.0.0


AGS_IS_SOUND_SERVER()

#define AGS_IS_SOUND_SERVER(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SOUND_SERVER))

AGS_IS_SOUND_SERVER_INTERFACE()

#define AGS_IS_SOUND_SERVER_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_SOUND_SERVER))

AGS_SOUND_SERVER()

#define AGS_SOUND_SERVER(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SOUND_SERVER, AgsSoundServer))

AGS_SOUND_SERVER_GET_INTERFACE()

#define AGS_SOUND_SERVER_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_SOUND_SERVER, AgsSoundServerInterface))

AGS_SOUND_SERVER_INTERFACE()

#define AGS_SOUND_SERVER_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_SOUND_SERVER, AgsSoundServerInterface))

ags_sound_server_get_type ()

GType
ags_sound_server_get_type ();

Types and Values

AGS_TYPE_SOUND_SERVER

#define AGS_TYPE_SOUND_SERVER                    (ags_sound_server_get_type())

AgsSoundServer

typedef struct _AgsSoundServer AgsSoundServer;

struct AgsSoundServerInterface

struct AgsSoundServerInterface {
  GTypeInterface ginterface;

  void (*set_url)(AgsSoundServer *sound_server,
		  gchar *url);
  gchar* (*get_url)(AgsSoundServer *sound_server);

  void (*set_ports)(AgsSoundServer *sound_server,
		    guint *ports, guint port_count);
  guint* (*get_ports)(AgsSoundServer *sound_server,
		      guint *port_count);

  void (*set_soundcard)(AgsSoundServer *sound_server,
			gchar *client_uuid,
			GList *soundcard);
  GList* (*get_soundcard)(AgsSoundServer *sound_server,
			  gchar *client_uuid);

  void (*set_sequencer)(AgsSoundServer *sound_server,
			gchar *client_uuid,
			GList *sequencer);
  GList* (*get_sequencer)(AgsSoundServer *sound_server,
			  gchar *client_uuid);

  GObject* (*register_soundcard)(AgsSoundServer *sound_server,
				 gboolean is_output);
  void (*unregister_soundcard)(AgsSoundServer *sound_server,
			       GObject *soundcard);

  GObject* (*register_sequencer)(AgsSoundServer *sound_server,
				 gboolean is_output);
  void (*unregister_sequencer)(AgsSoundServer *sound_server,
			       GObject *sequencer);
};