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: 0.4.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: 0.4.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: 0.4.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: 0.4.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: 0.4.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: 0.4.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 AgsMain

 

Returns

the new AgsAudioLoop

Since: 0.4.0

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

Members

AGS_AUDIO_LOOP_PLAY_RECALL

   

AGS_AUDIO_LOOP_PLAYING_RECALL

   

AGS_AUDIO_LOOP_PLAY_RECALL_TERMINATING

   

AGS_AUDIO_LOOP_PLAY_CHANNEL

   

AGS_AUDIO_LOOP_PLAYING_CHANNEL

   

AGS_AUDIO_LOOP_PLAY_CHANNEL_TERMINATING

   

AGS_AUDIO_LOOP_PLAY_AUDIO

   

AGS_AUDIO_LOOP_PLAYING_AUDIO

   

AGS_AUDIO_LOOP_PLAY_NOTATION

   

AGS_AUDIO_LOOP_PLAYING_NOTATION

   

AGS_AUDIO_LOOP_PLAY_AUDIO_TERMINATING

   

enum AgsAudioLoopTimingFlags

Members

AGS_AUDIO_LOOP_TIMING_WAITING

   

AGS_AUDIO_LOOP_TIMING_WAKEUP

   

Property Details

The “play-audio” property

  “play-audio”               AgsAudio *

A audio to run.

Flags: Write

Since: 0.4.0


The “play-channel” property

  “play-channel”             AgsChannel *

A channel to run.

Flags: Write

Since: 0.4.0


The “play-recall” property

  “play-recall”              AgsRecall *

A recall to run.

Flags: Write

Since: 0.4.0


The “soundcard” property

  “soundcard”                GObject *

The AgsSoundcard it is assigned to.

Flags: Write

Since: 0.7.0