AgsJackDevout

AgsJackDevout — Output to soundcard

Functions

Properties

AgsApplicationContext * application-context Read / Write
gpointer application-mutex Read / Write
gpointer attack Read
gdouble bpm Read / Write
gpointer buffer Read
guint buffer-size Read / Write
AgsChannel * channel Read / Write
gdouble delay-factor Read / Write
gchar * device Read / Write
guint dsp-channels Read / Write
guint format Read / Write
AgsJackClient * jack-client Read / Write
gpointer jack-port Read / Write
guint pcm-channels Read / Write
guint samplerate Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsJackDevout

Implemented Interfaces

AgsJackDevout implements AgsConnectable and AgsSoundcard.

Includes

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

Description

AgsJackDevout represents a soundcard and supports output.

Functions

ags_jack_devout_error_quark ()

GQuark
ags_jack_devout_error_quark ();

ags_jack_devout_switch_buffer_flag ()

void
ags_jack_devout_switch_buffer_flag (AgsJackDevout *jack_devout);

The buffer flag indicates the currently played buffer.

Parameters

jack_devout

an AgsJackDevout

 

Since: 1.0.0


ags_jack_devout_adjust_delay_and_attack ()

void
ags_jack_devout_adjust_delay_and_attack
                               (AgsJackDevout *jack_devout);

Calculate delay and attack and reset it.

Parameters

jack_devout

the AgsJackDevout

 

Since: 1.0.0


ags_jack_devout_realloc_buffer ()

void
ags_jack_devout_realloc_buffer (AgsJackDevout *jack_devout);

Reallocate the internal audio buffer.

Parameters

jack_devout

the AgsJackDevout

 

Since: 1.0.0


ags_jack_devout_new ()

AgsJackDevout *
ags_jack_devout_new (GObject *application_context);

Creates an AgsJackDevout, refering to application_context .

Parameters

application_context

the AgsApplicationContext

 

Returns

a new AgsJackDevout

Since: 1.0.0


AGS_IS_JACK_DEVOUT()

#define AGS_IS_JACK_DEVOUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_JACK_DEVOUT))

AGS_JACK_DEVOUT()

#define AGS_JACK_DEVOUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_JACK_DEVOUT, AgsJackDevout))

AGS_JACK_DEVOUT_CLASS()

#define AGS_JACK_DEVOUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_JACK_DEVOUT, AgsJackDevout))

AGS_JACK_DEVOUT_GET_CLASS()

#define AGS_JACK_DEVOUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_JACK_DEVOUT, AgsJackDevoutClass))

ags_jack_devout_get_type ()

GType
ags_jack_devout_get_type ();

Types and Values

enum AgsJackDevoutFlags

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

Members

AGS_JACK_DEVOUT_BUFFER0

ring-buffer 0

 

AGS_JACK_DEVOUT_BUFFER1

ring-buffer 1

 

AGS_JACK_DEVOUT_BUFFER2

ring-buffer 2

 

AGS_JACK_DEVOUT_BUFFER3

ring-buffer 3

 

AGS_JACK_DEVOUT_ATTACK_FIRST

use first attack, instead of second one

 

AGS_JACK_DEVOUT_PLAY

do playback

 

AGS_JACK_DEVOUT_SHUTDOWN

stop playback

 

AGS_JACK_DEVOUT_START_PLAY

playback starting

 

AGS_JACK_DEVOUT_NONBLOCKING

do non-blocking calls

 

AGS_JACK_DEVOUT_INITIALIZED

the soundcard was initialized

 

AGS_JACK_DEVOUT_DUMMY

   

AGS_JACK_DEVOUT_OSS

   

AGS_JACK_DEVOUT_ALSA

   

AGS_JACK_DEVOUT_FREEBOB

   

AGS_JACK_DEVOUT_FIREWIRE

   

AGS_JACK_DEVOUT_NET

   

AGS_JACK_DEVOUT_SUN

   

AGS_JACK_DEVOUT_PORTAUDIO

   

enum AgsJackDevoutSyncFlags

Enum values to control the synchronization between soundcard and client.

Members

AGS_JACK_DEVOUT_PASS_THROUGH

do not sync

 

AGS_JACK_DEVOUT_INITIAL_CALLBACK

initial callback

 

AGS_JACK_DEVOUT_CALLBACK_WAIT

sync wait, soundcard conditional lock

 

AGS_JACK_DEVOUT_CALLBACK_DONE

sync done, soundcard conditional lock

 

AGS_JACK_DEVOUT_CALLBACK_FINISH_WAIT

sync wait, client conditional lock

 

AGS_JACK_DEVOUT_CALLBACK_FINISH_DONE

sync done, client conditional lock

 

AGS_JACK_DEVOUT_ERROR

#define AGS_JACK_DEVOUT_ERROR (ags_jack_devout_error_quark())

enum AgsJackDevoutError

Members

AGS_JACK_DEVOUT_ERROR_LOCKED_SOUNDCARD

   

AGS_TYPE_JACK_DEVOUT

#define AGS_TYPE_JACK_DEVOUT                (ags_jack_devout_get_type())

struct AgsJackDevout

struct AgsJackDevout;

struct AgsJackDevoutClass

struct AgsJackDevoutClass {
  GObjectClass object;
};

Property Details

The “application-context” property

  “application-context”      AgsApplicationContext *

The assigned AgsApplicationContext

Flags: Read / Write

Since: 1.0.0


The “application-mutex” property

  “application-mutex”        gpointer

The assigned application mutex

Flags: Read / Write

Since: 1.0.0


The “attack” property

  “attack”                   gpointer

Attack of the buffer

Flags: Read

Since: 1.0.0


The “bpm” property

  “bpm”                      gdouble

Beats per minute

Flags: Read / Write

Allowed values: [1,240]

Default value: 120

Since: 1.0.0


The “buffer” property

  “buffer”                   gpointer

The buffer

Flags: Read

Since: 1.0.0


The “buffer-size” property

  “buffer-size”              guint

The buffer size

Flags: Read / Write

Allowed values: [1,44100]

Default value: 940

Since: 1.0.0


The “channel” property

  “channel”                  AgsChannel *

The assigned AgsChannel

Flags: Read / Write

Since: 1.0.0


The “delay-factor” property

  “delay-factor”             gdouble

tact

Flags: Read / Write

Allowed values: [0,16]

Default value: 1

Since: 1.0.0


The “device” property

  “device”                   gchar *

The jack soundcard indentifier

Flags: Read / Write

Default value: "ags-jack-devout-0"

Since: 1.0.0


The “dsp-channels” property

  “dsp-channels”             guint

The dsp channel count

Flags: Read / Write

Allowed values: [1,64]

Default value: 2

Since: 1.0.0


The “format” property

  “format”                   guint

The precision of the buffer

Flags: Read / Write

Allowed values: [1,64]

Default value: 16

Since: 1.0.0


The “jack-client” property

  “jack-client”              AgsJackClient *

The assigned AgsJackClient

Flags: Read / Write

Since: 1.0.0


The “jack-port” property

  “jack-port”                gpointer

The assigned AgsJackPort

Flags: Read / Write

Since: 1.0.0.7


The “pcm-channels” property

  “pcm-channels”             guint

The pcm channel count

Flags: Read / Write

Allowed values: [1,64]

Default value: 2

Since: 1.0.0


The “samplerate” property

  “samplerate”               guint

The samplerate

Flags: Read / Write

Allowed values: [8000,96000]

Default value: 44100

Since: 1.0.0