AgsDevout

AgsDevout — 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
gdouble delay-factor Read / Write
gchar * device Read / Write
guint dsp-channels Read / Write
guint format Read / Write
guint pcm-channels Read / Write
guint samplerate Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsDevout

Implemented Interfaces

AgsDevout implements AgsConnectable, AgsSoundcard and AgsConcurrentTree.

Includes

#include <ags/object/ags_soundcard.h>

Description

AgsDevout represents a soundcard and supports output.

Functions

ags_devout_error_quark ()

GQuark
ags_devout_error_quark ();


ags_devout_adjust_delay_and_attack ()

void
ags_devout_adjust_delay_and_attack (AgsDevout *devout);

Calculate delay and attack and reset it.

Parameters

devout

the AgsDevout

 

Since: 0.7.0


ags_devout_realloc_buffer ()

void
ags_devout_realloc_buffer (AgsDevout *devout);

Reallocate the internal audio buffer.

Parameters

devout

the AgsDevout

 

Since: 0.7.0


ags_devout_new ()

AgsDevout *
ags_devout_new (GObject *application_context);

Creates an AgsDevout, refering to application_context .

Parameters

application_context

the AgsApplicationContext

 

Returns

a new AgsDevout

Since: 0.3

Types and Values

enum AgsDevoutFlags

Members

AGS_DEVOUT_BUFFER0

   

AGS_DEVOUT_BUFFER1

   

AGS_DEVOUT_BUFFER2

   

AGS_DEVOUT_BUFFER3

   

AGS_DEVOUT_ATTACK_FIRST

   

AGS_DEVOUT_PLAY

   

AGS_DEVOUT_OSS

   

AGS_DEVOUT_ALSA

   

AGS_DEVOUT_SHUTDOWN

   

AGS_DEVOUT_START_PLAY

   

AGS_DEVOUT_NONBLOCKING

   

AGS_DEVOUT_INITIALIZED

   

AGS_DEVOUT_ERROR

#define AGS_DEVOUT_ERROR (ags_devout_error_quark())


enum AgsDevoutError

Members

AGS_DEVOUT_ERROR_LOCKED_SOUNDCARD

   

Property Details

The “application-context” property

  “application-context”      AgsApplicationContext *

The application context object.

Flags: Read / Write

Since: 0.4.0


The “application-mutex” property

  “application-mutex”        gpointer

The application mutex object.

Flags: Read / Write

Since: 0.7.0


The “attack” property

  “attack”                   gpointer

The attack to use for the buffer.

Flags: Read

Since: 0.4.0


The “bpm” property

  “bpm”                      gdouble

Beats per minute to use.

Flags: Read / Write

Allowed values: [1,240]

Default value: 120

Since: 0.4.0


The “buffer” property

  “buffer”                   gpointer

The buffer to play.

Flags: Read

Since: 0.4.0


The “buffer-size” property

  “buffer-size”              guint

The count of frames a buffer contains.

Flags: Read / Write

Allowed values: [1,44100]

Default value: 944

Since: 0.4.0


The “delay-factor” property

  “delay-factor”             gdouble

The delay factor.

Flags: Read / Write

Allowed values: [0,16]

Default value: 1

Since: 0.4.2


The “device” property

  “device”                   gchar *

The device to perform output to.

Flags: Read / Write

Default value: "hw:0"

Since: 0.4.0


The “dsp-channels” property

  “dsp-channels”             guint

The count of DSP channels to use.

Flags: Read / Write

Allowed values: [1,64]

Default value: 2

Since: 0.4.0


The “format” property

  “format”                   guint

The precision to use for a frame.

Flags: Read / Write

Allowed values: [1,64]

Default value: 16

Since: 0.4.0


The “pcm-channels” property

  “pcm-channels”             guint

The count of PCM channels to use.

Flags: Read / Write

Allowed values: [1,64]

Default value: 2

Since: 0.4.0


The “samplerate” property

  “samplerate”               guint

The frames count played during a second.

Flags: Read / Write

Allowed values: [8000,96000]

Default value: 44100

Since: 0.4.0