AgsAudioLoop

AgsAudioLoop — audio loop

Functions

Properties

Types and Values

Object Hierarchy

    GObject
    ╰── AgsThread
        ╰── AgsAudioLoop

Implemented Interfaces

AgsAudioLoop implements AgsConnectable and AgsMainLoop.

Includes

#include <ags/audio/thread/ags_audio_loop.h>

Description

The AgsAudioLoop is suitable as AgsMainLoop and does audio processing.

Functions

ags_audio_loop_add_audio ()

void
ags_audio_loop_add_audio (AgsAudioLoop *audio_loop,
                          GObject *audio);

Add audio for playback.

Parameters

audio_loop

the AgsAudioLoop

 

audio

an AgsAudio

 

Since: 1.0.0


ags_audio_loop_remove_audio ()

void
ags_audio_loop_remove_audio (AgsAudioLoop *audio_loop,
                             GObject *audio);

Remove audio of playback.

Parameters

audio_loop

the AgsAudioLoop

 

audio

an AgsAudio

 

Since: 1.0.0


ags_audio_loop_add_channel ()

void
ags_audio_loop_add_channel (AgsAudioLoop *audio_loop,
                            GObject *channel);

Add channel for playback.

Parameters

audio_loop

the AgsAudioLoop

 

channel

an AgsChannel

 

Since: 1.0.0


ags_audio_loop_remove_channel ()

void
ags_audio_loop_remove_channel (AgsAudioLoop *audio_loop,
                               GObject *channel);

Remove channel of playback.

Parameters

audio_loop

the AgsAudioLoop

 

channel

an AgsChannel

 

Since: 1.0.0


ags_audio_loop_add_recall ()

void
ags_audio_loop_add_recall (AgsAudioLoop *audio_loop,
                           gpointer playback);

Add recall for playback.

Parameters

audio_loop

the AgsAudioLoop

 

playback

an AgsRecall

 

Since: 1.0.0


ags_audio_loop_remove_recall ()

void
ags_audio_loop_remove_recall (AgsAudioLoop *audio_loop,
                              gpointer playback);

Remove recall of playback.

Parameters

audio_loop

the AgsAudioLoop

 

playback

an AgsRecall

 

Since: 1.0.0


ags_audio_loop_new ()

AgsAudioLoop *
ags_audio_loop_new (GObject *soundcard,
                    GObject *application_context);

Create a new AgsAudioLoop.

Parameters

soundcard

the GObject

 

application_context

the AgsApplicationContext

 

Returns

the new AgsAudioLoop

Since: 1.0.0


AGS_AUDIO_LOOP()

#define AGS_AUDIO_LOOP(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_LOOP, AgsAudioLoop))

AGS_AUDIO_LOOP_CLASS()

#define AGS_AUDIO_LOOP_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_AUDIO_LOOP, AgsAudioLoopClass))

AGS_AUDIO_LOOP_GET_CLASS()

#define AGS_AUDIO_LOOP_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_AUDIO_LOOP, AgsAudioLoopClass))

AGS_IS_AUDIO_LOOP()

#define AGS_IS_AUDIO_LOOP(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUDIO_LOOP))

ags_audio_loop_get_type ()

GType
ags_audio_loop_get_type ();

Types and Values

AGS_AUDIO_LOOP_DEFAULT_JIFFIE

#define AGS_AUDIO_LOOP_DEFAULT_JIFFIE (ceil(AGS_SOUNDCARD_DEFAULT_SAMPLERATE / AGS_SOUNDCARD_DEFAULT_BUFFER_SIZE) + AGS_SOUNDCARD_DEFAULT_OVERCLOCK)

enum AgsAudioLoopFlags

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

Members

AGS_AUDIO_LOOP_PLAY_RECALL

play recall

 

AGS_AUDIO_LOOP_PLAYING_RECALL

plaing recall

 

AGS_AUDIO_LOOP_PLAY_RECALL_TERMINATING

play recall terminating

 

AGS_AUDIO_LOOP_PLAY_CHANNEL

play channel

 

AGS_AUDIO_LOOP_PLAYING_CHANNEL

playing channnel

 

AGS_AUDIO_LOOP_PLAY_CHANNEL_TERMINATING

play channe terminating

 

AGS_AUDIO_LOOP_PLAY_AUDIO

play audio

 

AGS_AUDIO_LOOP_PLAYING_AUDIO

playing audio

 

AGS_AUDIO_LOOP_PLAY_NOTATION

play notation

 

AGS_AUDIO_LOOP_PLAYING_NOTATION

playing notation

 

AGS_AUDIO_LOOP_PLAY_AUDIO_TERMINATING

play audio terminating

 

enum AgsAudioLoopTimingFlags

Enum values to control timing.

Members

AGS_AUDIO_LOOP_TIMING_WAITING

timing waiting

 

AGS_AUDIO_LOOP_TIMING_WAKEUP

timing wakeup

 

AGS_TYPE_AUDIO_LOOP

#define AGS_TYPE_AUDIO_LOOP                (ags_audio_loop_get_type())

struct AgsAudioLoop

struct AgsAudioLoop;

struct AgsAudioLoopClass

struct AgsAudioLoopClass {
  AgsThreadClass thread;
};

Property Details

The “application-context” property

  “application-context”      AgsApplicationContext *

The application context object.

Flags: Read / Write


The “play-audio” property

  “play-audio”               AgsAudio *

An AgsAudio to add for playback.

Flags: Write

Since: 1.0.0


The “play-channel” property

  “play-channel”             AgsChannel *

An AgsChannel to add for playback.

Flags: Write

Since: 1.0.0


The “play-recall” property

  “play-recall”              AgsRecall *

An AgsRecall to add for playback.

Flags: Write

Since: 1.0.0


The “soundcard” property

  “soundcard”                GObject *

The assigned AgsAudio.

Flags: Write

Since: 1.0.0