AgsExportThread

AgsExportThread — export thread

Synopsis

#include <ags/thread/ags_export_thread.h>

#define             AGS_EXPORT_THREAD_BUFFER_TIME
#define             AGS_EXPORT_THREAD_DEFAULT_JIFFIE
struct              AgsExportThread;
struct              AgsExportThreadClass;
AgsExportThread *   ags_export_thread_new               (GObject *devout,
                                                         AgsAudioFile *audio_file);

Description

The AgsExportThread acts as audio output thread to file.

Details

AGS_EXPORT_THREAD_BUFFER_TIME

#define AGS_EXPORT_THREAD_BUFFER_TIME (1.0 / (AGS_DEVOUT_DEFAULT_FORMAT / 8))

AGS_EXPORT_THREAD_DEFAULT_JIFFIE

#define AGS_EXPORT_THREAD_DEFAULT_JIFFIE (48.0) // same as devout thread

struct AgsExportThread

struct AgsExportThread {
  AgsThread thread;

  guint flags;

  guint tic;
  guint counter;

  AgsAudioFile *audio_file;
};

struct AgsExportThreadClass

struct AgsExportThreadClass {
  AgsThreadClass thread;
};

ags_export_thread_new ()

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

Create a new AgsExportThread.

export :

the AgsExport

audio_file :

the output file

Returns :

the new AgsExportThread

Since 0.4