AgsExportThread

AgsExportThread — export thread

Functions

Properties

AgsAudioFile * audio-file Read / Write
GObject * soundcard Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsThread
        ╰── AgsExportThread

Implemented Interfaces

AgsExportThread implements AgsConnectable.

Includes

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

Description

The AgsExportThread acts as audio output thread to file.

Functions

ags_export_thread_find_soundcard ()

AgsExportThread *
ags_export_thread_find_soundcard (AgsExportThread *export_thread,
                                  GObject *soundcard);

Parameters

export_thread

the AgsExportThread

 

soundcard

the AgsSoundcard to find

 

Returns

the matching AgsExportThread, if not found NULL.

Since: 1.0.0


ags_export_thread_new ()

AgsExportThread *
ags_export_thread_new (GObject *soundcard,
                       AgsAudioFile *audio_file);

Create a new AgsExportThread.

Parameters

soundcard

the AgsSoundcard

 

audio_file

the output file

 

Returns

the new AgsExportThread

Since: 1.0.0


AGS_EXPORT_THREAD()

#define AGS_EXPORT_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_EXPORT_THREAD, AgsExportThread))

AGS_EXPORT_THREAD_CLASS()

#define AGS_EXPORT_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_EXPORT_THREAD, AgsExportThreadClass))

AGS_EXPORT_THREAD_GET_CLASS()

#define AGS_EXPORT_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_EXPORT_THREAD, AgsExportThreadClass))

AGS_IS_EXPORT_THREAD()

#define AGS_IS_EXPORT_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_EXPORT_THREAD))

ags_export_thread_get_type ()

GType
ags_export_thread_get_type ();

Types and Values

AGS_EXPORT_THREAD_DEFAULT_JIFFIE

#define AGS_EXPORT_THREAD_DEFAULT_JIFFIE (ceil(AGS_SOUNDCARD_DEFAULT_SAMPLERATE / AGS_SOUNDCARD_DEFAULT_BUFFER_SIZE) + AGS_SOUNDCARD_DEFAULT_OVERCLOCK) // same as soundcard thread

enum AgsExportThreadFlags

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

Members

AGS_EXPORT_THREAD_LIVE_PERFORMANCE

do live export

 

AGS_TYPE_EXPORT_THREAD

#define AGS_TYPE_EXPORT_THREAD                (ags_export_thread_get_type())

struct AgsExportThread

struct AgsExportThread;

struct AgsExportThreadClass

struct AgsExportThreadClass {
  AgsThreadClass thread;
};

Property Details

The “audio-file” property

  “audio-file”               AgsAudioFile *

The assigned AgsAudioFile.

Flags: Read / Write

Since: 1.0.0


The “soundcard” property

  “soundcard”                GObject *

The assigned AgsSoundcard.

Flags: Write

Since: 1.0.0