AgsRecyclingThread

AgsRecyclingThread

Functions

Properties

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── AgsThread
        ╰── AgsRecyclingThread

Implemented Interfaces

AgsRecyclingThread implements AgsConnectable.

Description

Functions

ags_recycling_thread_worker_alloc ()

AgsRecyclingThreadWorker *
ags_recycling_thread_worker_alloc (AgsRecyclingThread *recycling_thread,
                                   GObject *audio,
                                   GObject *channel,
                                   AgsRecallID *recall_id,
                                   gint stage,
                                   gboolean audio_worker);

ags_recycling_thread_add_worker ()

void
ags_recycling_thread_add_worker (AgsRecyclingThread *recycling_thread,
                                 AgsRecyclingThreadWorker *worker);

ags_recycling_thread_remove_worker ()

void
ags_recycling_thread_remove_worker (AgsRecyclingThread *recycling_thread,
                                    AgsRecyclingThreadWorker *worker);

ags_recycling_thread_play_channel ()

void
ags_recycling_thread_play_channel (AgsRecyclingThread *recycling_thread,
                                   GObject *channel,
                                   AgsRecallID *recall_id,
                                   gint stage);

ags_recycling_thread_play_audio ()

void
ags_recycling_thread_play_audio (AgsRecyclingThread *recycling_thread,
                                 GObject *output,
                                 GObject *audio,
                                 AgsRecallID *recall_id,
                                 gint stage);

ags_recycling_thread_find_child ()

AgsRecyclingThread *
ags_recycling_thread_find_child (AgsRecyclingThread *recycling_thread,
                                 GObject *first_recycling);

ags_recycling_thread_fifo ()

void
ags_recycling_thread_fifo (AgsRecyclingThread *recycling_thread);

ags_recycling_thread_new ()

AgsRecyclingThread *
ags_recycling_thread_new (GObject *first_recycling,
                          GObject *last_recycling);

AGS_IS_RECYCLING_THREAD()

#define AGS_IS_RECYCLING_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_RECYCLING_THREAD))

AGS_RECYCLING_THREAD()

#define AGS_RECYCLING_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_RECYCLING_THREAD, AgsRecyclingThread))

AGS_RECYCLING_THREAD_CLASS()

#define AGS_RECYCLING_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_RECYCLING_THREAD, AgsRecyclingThread))

AGS_RECYCLING_THREAD_GET_CLASS()

#define AGS_RECYCLING_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_RECYCLING_THREAD, AgsRecyclingThreadClass))

ags_recycling_thread_get_type ()

GType
ags_recycling_thread_get_type ();

Types and Values

AGS_RECYCLING_THREAD_DEFAULT_JIFFIE

#define AGS_RECYCLING_THREAD_DEFAULT_JIFFIE (100)

enum AgsRecyclingThreadFlags

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

Members

AGS_RECYCLING_THREAD_WAIT

TODO:JK: implement me

 

AGS_RECYCLING_THREAD_DONE

TODO:JK: implement me

 

AGS_RECYCLING_THREAD_LOCKED

TODO:JK: implement me

 

AGS_RECYCLING_THREAD_LOCKED_PARENT

TODO:JK: implement me

 

AGS_RECYCLING_THREAD_WORKER_WAIT

TODO:JK: implement me

 

AGS_RECYCLING_THREAD_WORKER_DONE

TODO:JK: implement me

 

struct AgsRecyclingThreadWorker

struct AgsRecyclingThreadWorker {
  AgsRecyclingThread *recycling_thread;

  GObject *audio;
  GObject *channel;

  AgsRecallID *recall_id;
  gint stage;

  gboolean audio_worker;
};

AGS_TYPE_RECYCLING_THREAD

#define AGS_TYPE_RECYCLING_THREAD                (ags_recycling_thread_get_type())

struct AgsRecyclingThread

struct AgsRecyclingThread;

struct AgsRecyclingThreadClass

struct AgsRecyclingThreadClass {
  AgsThreadClass thread;

  void (*play_channel)(AgsRecyclingThread *recycling_thread,
		       GObject *channel,
		       AgsRecallID *recall_id,
		       gint stage);

  void (*play_audio)(AgsRecyclingThread *recycling_thread,
		     GObject *output, GObject *audio,
		     AgsRecallID *recall_id,
		     gint stage);
};

Property Details

The “first-recycling” property

  “first-recycling”          AgsRecycling *

The first recycling to acquire lock.

Flags: Read / Write


The “iterator-thread” property

  “iterator-thread”          AgsIteratorThread *

The iterator thread object it is assigned to.

Flags: Read / Write


The “last-recycling” property

  “last-recycling”           AgsRecycling *

The last recycling to acquire lock.

Flags: Read / Write

Signal Details

The “play-audio” signal

void
user_function (AgsRecyclingThread *agsrecyclingthread,
               GObject            *arg1,
               GObject            *arg2,
               GObject            *arg3,
               GObject            *arg4,
               GObject            *arg5,
               GObject            *arg6,
               guint               arg7,
               gint                arg8,
               gboolean            arg9,
               gpointer            user_data)

Flags: Run Last


The “play-channel” signal

void
user_function (AgsRecyclingThread *agsrecyclingthread,
               GObject            *arg1,
               GObject            *arg2,
               GObject            *arg3,
               gint                arg4,
               gboolean            arg5,
               gpointer            user_data)

Flags: Run Last