AgsAudioThread

AgsAudioThread — audio thread

Functions

Properties

AgsAudio * audio Write
GObject * soundcard Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsThread
        ╰── AgsAudioThread

Implemented Interfaces

AgsAudioThread implements AgsConnectable.

Includes

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

Description

The AgsAudioThread acts as audio output thread to soundcard.

Functions

ags_audio_thread_new ()

AgsAudioThread *
ags_audio_thread_new (GObject *soundcard,
                      GObject *audio);

Create a new AgsAudioThread.

Parameters

soundcard

the GObject

 

audio

the AgsAudio

 

Returns

the new AgsAudioThread

Since: 1.0.0


AGS_AUDIO_THREAD()

#define AGS_AUDIO_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_THREAD, AgsAudioThread))

AGS_AUDIO_THREAD_CLASS()

#define AGS_AUDIO_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_AUDIO_THREAD, AgsAudioThreadClass))

AGS_AUDIO_THREAD_GET_CLASS()

#define AGS_AUDIO_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_AUDIO_THREAD, AgsAudioThreadClass))

AGS_IS_AUDIO_THREAD()

#define AGS_IS_AUDIO_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUDIO_THREAD))

ags_audio_thread_get_type ()

GType
ags_audio_thread_get_type ();

Types and Values

AGS_AUDIO_THREAD_DEFAULT_JIFFIE

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

enum AgsAudioThreadFlags

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

Members

AGS_AUDIO_THREAD_DONE

sync done parent thread, initial wait during AgsThread::run()

 

AGS_AUDIO_THREAD_WAIT

sync wait parent thread, initial wait during AgsThread::run()

 

AGS_AUDIO_THREAD_DONE_SYNC

sync done parent thread, signal completed during AgsThread::run()

 

AGS_AUDIO_THREAD_WAIT_SYNC

sync wait parent thread, signal completed during AgsThread::run()

 

AGS_TYPE_AUDIO_THREAD

#define AGS_TYPE_AUDIO_THREAD                (ags_audio_thread_get_type())

struct AgsAudioThread

struct AgsAudioThread;

struct AgsAudioThreadClass

struct AgsAudioThreadClass {
  AgsThreadClass thread;
};

Property Details

The “audio” property

  “audio”                    AgsAudio *

The assigned AgsAudio.

Flags: Write

Since: 1.0.0


The “soundcard” property

  “soundcard”                GObject *

The assigned AgsAudio.

Flags: Write

Since: 1.0.0