AgsFifoout

AgsFifoout — Output to pipe

Functions

Properties

gpointer attack Read
double bpm Read / Write
gpointer buffer Read
guint buffer-size Read / Write
double delay-factor Read / Write
char * 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

    GFlags
    ╰── AgsFifooutFlags
    GObject
    ╰── AgsFifoout

Implemented Interfaces

AgsFifoout implements AgsConnectable and AgsSoundcard.

Includes

#include <ags/audio/ags_fifoout.h>

Description

AgsFifoout represents a pipe and supports output.

Functions

AGS_FIFOOUT_GET_OBJ_MUTEX()

#define AGS_FIFOOUT_GET_OBJ_MUTEX(obj) (&(((AgsFifoout *) obj)->obj_mutex))

ags_fifoout_error_quark ()

GQuark
ags_fifoout_error_quark ();

ags_fifoout_test_flags ()

gboolean
ags_fifoout_test_flags (AgsFifoout *fifoout,
                        guint flags);

Test flags to be set on fifoout .

Parameters

fifoout

the AgsFifoout

 

flags

the flags

 

Returns

TRUE if flags are set, else FALSE

Since: 3.0.0


ags_fifoout_set_flags ()

void
ags_fifoout_set_flags (AgsFifoout *fifoout,
                       guint flags);

Enable a feature of fifoout .

Parameters

fifoout

the AgsFifoout

 

flags

see AgsFifooutFlags

 

Since: 3.0.0


ags_fifoout_unset_flags ()

void
ags_fifoout_unset_flags (AgsFifoout *fifoout,
                         guint flags);

Disable a feature of fifoout .

Parameters

fifoout

the AgsFifoout

 

flags

see AgsFifooutFlags

 

Since: 3.0.0


ags_fifoout_switch_buffer_flag ()

void
ags_fifoout_switch_buffer_flag (AgsFifoout *fifoout);

The buffer flag indicates the currently played buffer.

Parameters

fifoout

the AgsFifoout

 

Since: 3.0.0


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: 3.0.0


ags_fifoout_realloc_buffer ()

void
ags_fifoout_realloc_buffer (AgsFifoout *fifoout);

Reallocate the internal audio buffer.

Parameters

fifoout

the AgsFifoout

 

Since: 3.0.0


ags_fifoout_new ()

AgsFifoout *
ags_fifoout_new ();

Creates a new instance of AgsFifoout.

Returns

the new AgsFifoout

Since: 3.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_IS_FIFOOUT_CLASS()

#define AGS_IS_FIFOOUT_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FIFOOUT))

ags_fifoout_flags_get_type ()

GType
ags_fifoout_flags_get_type ();

ags_fifoout_get_type ()

GType
ags_fifoout_get_type ();

Types and Values

AGS_FIFOOUT_DEFAULT_DEVICE

#define AGS_FIFOOUT_DEFAULT_DEVICE "/dev/null"

AGS_FIFOOUT_DEFAULT_RING_BUFFER_SIZE

#define AGS_FIFOOUT_DEFAULT_RING_BUFFER_SIZE (8)

enum AgsFifooutFlags

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

Members

AGS_FIFOOUT_ADDED_TO_REGISTRY

the fifoout was added to registry, see AgsConnectable::add_to_registry()

 

AGS_FIFOOUT_CONNECTED

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

 

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 gobject;
};

Property Details

The “attack” property

  “attack”                   gpointer

Attack of the buffer

Owner: AgsFifoout

Flags: Read

Since: 3.0.0


The “bpm” property

  “bpm”                      double

Beats per minute

Owner: AgsFifoout

Flags: Read / Write

Allowed values: [1,240]

Default value: 120

Since: 3.0.0


The “buffer” property

  “buffer”                   gpointer

The buffer

Owner: AgsFifoout

Flags: Read

Since: 3.0.0


The “buffer-size” property

  “buffer-size”              guint

The buffer size

Owner: AgsFifoout

Flags: Read / Write

Allowed values: [16,16384]

Default value: 1024

Since: 3.0.0


The “delay-factor” property

  “delay-factor”             double

tact

Owner: AgsFifoout

Flags: Read / Write

Allowed values: [0,16]

Default value: 1

Since: 3.0.0


The “device” property

  “device”                   char *

The fifo soundcard indentifier

Owner: AgsFifoout

Flags: Read / Write

Default value: "/dev/null"

Since: 3.0.0


The “dsp-channels” property

  “dsp-channels”             guint

The dsp channel count

Owner: AgsFifoout

Flags: Read / Write

Allowed values: [1,64]

Default value: 2

Since: 3.0.0


The “format” property

  “format”                   guint

The precision of the buffer

Owner: AgsFifoout

Flags: Read / Write

Default value: 16

Since: 3.0.0


The “pcm-channels” property

  “pcm-channels”             guint

The pcm channel count

Owner: AgsFifoout

Flags: Read / Write

Allowed values: [1,64]

Default value: 2

Since: 3.0.0


The “samplerate” property

  “samplerate”               guint

The samplerate

Owner: AgsFifoout

Flags: Read / Write

Allowed values: [8000,5644800]

Default value: 48000

Since: 3.0.0