AgsJackPort

AgsJackPort — JACK resource.

Functions

Properties

AgsJackClient * jack-client Read / Write
gchar * port-name Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsJackPort

Implemented Interfaces

AgsJackPort implements AgsConnectable.

Includes

#include <ags/audio/jack/ags_jack_port.h>

Description

The AgsJackPort represents either a JACK sequencer or soundcard to communicate with.

Functions

ags_jack_port_find ()

GList *
ags_jack_port_find (GList *jack_port,
                    gchar *port_name);

Finds next match of port_name in jack_port .

Parameters

jack_port

a GList

 

port_name

the port name to find

 

Returns

a GList or NULL

Since: 1.0.0


ags_jack_port_register ()

void
ags_jack_port_register (AgsJackPort *jack_port,
                        gchar *port_name,
                        gboolean is_audio,
                        gboolean is_midi,
                        gboolean is_output);

Register a new JACK port and read uuid. Creates a new AgsSequencer or AgsSoundcard object.

Parameters

jack_port

the AgsJackPort

 

port_name

the name as string

 

is_audio

if TRUE interpreted as audio port

 

is_midi

if TRUE interpreted as midi port

 

is_output

if TRUE port is acting as output, otherwise as input

 

Since: 1.0.0


ags_jack_port_unregister ()

void
ags_jack_port_unregister (AgsJackPort *jack_port);

ags_jack_port_new ()

AgsJackPort *
ags_jack_port_new (GObject *jack_client);

Instantiate a new AgsJackPort.

Parameters

jack_client

the AgsJackClient assigned to

 

Returns

the new AgsJackPort

Since: 1.0.0


AGS_IS_JACK_PORT()

#define AGS_IS_JACK_PORT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_JACK_PORT))

AGS_JACK_PORT()

#define AGS_JACK_PORT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_JACK_PORT, AgsJackPort))

AGS_JACK_PORT_CLASS()

#define AGS_JACK_PORT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_JACK_PORT, AgsJackPort))

AGS_JACK_PORT_GET_CLASS()

#define AGS_JACK_PORT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_JACK_PORT, AgsJackPortClass))

ags_jack_port_get_type ()

GType
ags_jack_port_get_type ();

Types and Values

enum AgsJackPortFlags

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

Members

AGS_JACK_PORT_CONNECTED

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

 

AGS_JACK_PORT_REGISTERED

the port was registered

 

AGS_JACK_PORT_IS_AUDIO

the port provides audio data

 

AGS_JACK_PORT_IS_MIDI

the port provides midi data

 

AGS_JACK_PORT_IS_OUTPUT

the port does output

 

AGS_JACK_PORT_IS_INPUT

the port does input

 

AGS_TYPE_JACK_PORT

#define AGS_TYPE_JACK_PORT                (ags_jack_port_get_type())

struct AgsJackPort

struct AgsJackPort;

struct AgsJackPortClass

struct AgsJackPortClass {
  GObjectClass object;
};

Property Details

The “jack-client” property

  “jack-client”              AgsJackClient *

The assigned AgsJackClient.

Flags: Read / Write

Since: 1.0.0


The “port-name” property

  “port-name”                gchar *

The jack soundcard indentifier

Flags: Read / Write

Default value: "hw:0"

Since: 1.0.0