AgsFifoout

AgsFifoout — 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
    ╰── AgsFifoout

Implemented Interfaces

AgsFifoout implements AgsConnectable, AgsSoundcard and AgsConcurrentTree.

Includes

#include <ags/audio/ags_fifoout.h>

Description

AgsFifoout represents a soundcard and supports output.

Functions

ags_fifoout_error_quark ()

GQuark
ags_fifoout_error_quark ();

ags_fifoout_adjust_delay_and_attack ()

void
ags_fifoout_adjust_delay_and_attack (AgsFifoout *fifoout);

Calculate delay and attack and reset it.

Parameters

fifoout

the AgsFifoout

 

Since: 1.0.0


ags_fifoout_realloc_buffer ()

void
ags_fifoout_realloc_buffer (AgsFifoout *fifoout);

Reallocate the internal audio buffer.

Parameters

fifoout

the AgsFifoout

 

Since: 1.0.0


ags_fifoout_new ()

AgsFifoout *
ags_fifoout_new (GObject *application_context);

Creates an AgsFifoout, refering to application_context .

Parameters

application_context

the AgsApplicationContext

 

Returns

a new AgsFifoout

Since: 1.0.0


AGS_FIFOOUT()

#define AGS_FIFOOUT(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FIFOOUT, AgsFifoout))

AGS_FIFOOUT_CLASS()

#define AGS_FIFOOUT_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_FIFOOUT, AgsFifoout))

AGS_FIFOOUT_GET_CLASS()

#define AGS_FIFOOUT_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_FIFOOUT, AgsFifooutClass))

AGS_IS_FIFOOUT()

#define AGS_IS_FIFOOUT(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FIFOOUT))

ags_fifoout_get_type ()

GType
ags_fifoout_get_type ();

Types and Values

AGS_FIFOOUT_DEFAULT_ALSA_DEVICE

#define AGS_FIFOOUT_DEFAULT_ALSA_DEVICE "hw:0,0\0"

AGS_FIFOOUT_DEFAULT_OSS_DEVICE

#define AGS_FIFOOUT_DEFAULT_OSS_DEVICE "/dev/dsp\0"

enum AgsFifooutFlags

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

Members

AGS_FIFOOUT_BUFFER0

ring-buffer 0

 

AGS_FIFOOUT_BUFFER1

ring-buffer 1

 

AGS_FIFOOUT_BUFFER2

ring-buffer 2

 

AGS_FIFOOUT_BUFFER3

ring-buffer 3

 

AGS_FIFOOUT_ATTACK_FIRST

use first attack, instead of second one

 

AGS_FIFOOUT_PLAY

use first attack, instead of second one

 

AGS_FIFOOUT_SHUTDOWN

stop playback

 

AGS_FIFOOUT_START_PLAY

playback starting

 

AGS_FIFOOUT_NONBLOCKING

do non-blocking calls

 

AGS_FIFOOUT_INITIALIZED

the soundcard was initialized

 

AGS_FIFOOUT_ERROR

#define AGS_FIFOOUT_ERROR (ags_fifoout_error_quark())

enum AgsFifooutError

Members

AGS_FIFOOUT_ERROR_LOCKED_SOUNDCARD

   

AGS_TYPE_FIFOOUT

#define AGS_TYPE_FIFOOUT                (ags_fifoout_get_type())

struct AgsFifoout

struct AgsFifoout;

struct AgsFifooutClass

struct AgsFifooutClass {
  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: 1024

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 fifo soundcard indentifier

Flags: Read / Write

Default value: "hw: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 “samplerate” property

  “samplerate”               guint

The samplerate

Flags: Read / Write

Allowed values: [8000,96000]

Default value: 44100

Since: 1.0.0