AgsPulseDevout

AgsPulseDevout — 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
guint pcm-channels Read / Write
AgsPulseClient * pulse-client Read / Write
gpointer pulse-port Read / Write
guint samplerate Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsPulseDevout

Implemented Interfaces

AgsPulseDevout implements AgsConnectable and AgsSoundcard.

Includes

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

Description

AgsPulseDevout represents a soundcard and supports output.

Functions

ags_pulse_devout_error_quark ()

GQuark
ags_pulse_devout_error_quark ();

ags_pulse_devout_switch_buffer_flag ()

void
ags_pulse_devout_switch_buffer_flag (AgsPulseDevout *pulse_devout);

The buffer flag indicates the currently played buffer.

Parameters

pulse_devout

an AgsPulseDevout

 

Since: 1.0.0


ags_pulse_devout_new ()

AgsPulseDevout *
ags_pulse_devout_new (GObject *application_context);

Creates an AgsPulseDevout, refering to application_context .

Parameters

application_context

the AgsApplicationContext

 

Returns

a new AgsPulseDevout

Since: 1.0.0


AGS_IS_PULSE_DEVOUT()

#define AGS_IS_PULSE_DEVOUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_PULSE_DEVOUT))

AGS_PULSE_DEVOUT()

#define AGS_PULSE_DEVOUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_PULSE_DEVOUT, AgsPulseDevout))

AGS_PULSE_DEVOUT_CLASS()

#define AGS_PULSE_DEVOUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_PULSE_DEVOUT, AgsPulseDevout))

AGS_PULSE_DEVOUT_GET_CLASS()

#define AGS_PULSE_DEVOUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_PULSE_DEVOUT, AgsPulseDevoutClass))

ags_pulse_devout_get_type ()

GType
ags_pulse_devout_get_type ();

Types and Values

enum AgsPulseDevoutFlags

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

Members

AGS_PULSE_DEVOUT_BUFFER0

ring-buffer 0

 

AGS_PULSE_DEVOUT_BUFFER1

ring-buffer 1

 

AGS_PULSE_DEVOUT_BUFFER2

ring-buffer 2

 

AGS_PULSE_DEVOUT_BUFFER3

ring-buffer 3

 

AGS_PULSE_DEVOUT_BUFFER4

   

AGS_PULSE_DEVOUT_BUFFER5

   

AGS_PULSE_DEVOUT_BUFFER6

   

AGS_PULSE_DEVOUT_BUFFER7

   

AGS_PULSE_DEVOUT_ATTACK_FIRST

use first attack, instead of second one

 

AGS_PULSE_DEVOUT_PLAY

do playback

 

AGS_PULSE_DEVOUT_SHUTDOWN

stop playback

 

AGS_PULSE_DEVOUT_START_PLAY

playback starting

 

AGS_PULSE_DEVOUT_NONBLOCKING

do non-blocking calls

 

AGS_PULSE_DEVOUT_INITIALIZED

the soundcard was initialized

 

enum AgsPulseDevoutSyncFlags

Enum values to control the synchronization between soundcard and client.

Members

AGS_PULSE_DEVOUT_PASS_THROUGH

do not sync

 

AGS_PULSE_DEVOUT_INITIAL_CALLBACK

initial callback

 

AGS_PULSE_DEVOUT_CALLBACK_WAIT

sync wait, soundcard conditional lock

 

AGS_PULSE_DEVOUT_CALLBACK_DONE

sync done, soundcard conditional lock

 

AGS_PULSE_DEVOUT_CALLBACK_FINISH_WAIT

sync wait, client conditional lock

 

AGS_PULSE_DEVOUT_CALLBACK_FINISH_DONE

sync done, client conditional lock

 

AGS_PULSE_DEVOUT_ERROR

#define AGS_PULSE_DEVOUT_ERROR (ags_pulse_devout_error_quark())

enum AgsPulseDevoutError

Members

AGS_PULSE_DEVOUT_ERROR_LOCKED_SOUNDCARD

   

AGS_TYPE_PULSE_DEVOUT

#define AGS_TYPE_PULSE_DEVOUT                (ags_pulse_devout_get_type())

struct AgsPulseDevout

struct AgsPulseDevout;

struct AgsPulseDevoutClass

struct AgsPulseDevoutClass {
  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 pulse soundcard indentifier

Flags: Read / Write

Default value: "ags-pulse-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 “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 “pulse-client” property

  “pulse-client”             AgsPulseClient *

The assigned AgsPulseClient

Flags: Read / Write

Since: 1.0.0


The “pulse-port” property

  “pulse-port”               gpointer

The assigned AgsPulsePort

Flags: Read / Write

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