AgsChannelThread

AgsChannelThread — channel thread

Functions

Properties

AgsChannel * channel Write
GObject * soundcard Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsThread
        ╰── AgsChannelThread

Implemented Interfaces

AgsChannelThread implements AgsConnectable.

Includes

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

Description

The AgsChannelThread acts as channel output thread to soundcard.

Functions

ags_channel_thread_new ()

AgsChannelThread *
ags_channel_thread_new (GObject *soundcard,
                        GObject *channel);

Create a new AgsChannelThread.

Parameters

soundcard

the GObject

 

channel

the AgsChannel

 

Returns

the new AgsChannelThread

Since: 0.4.2


AGS_CHANNEL_THREAD()

#define AGS_CHANNEL_THREAD(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CHANNEL_THREAD, AgsChannelThread))


AGS_CHANNEL_THREAD_CLASS()

#define AGS_CHANNEL_THREAD_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST(class, AGS_TYPE_CHANNEL_THREAD, AgsChannelThreadClass))


AGS_CHANNEL_THREAD_GET_CLASS()

#define AGS_CHANNEL_THREAD_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS(obj, AGS_TYPE_CHANNEL_THREAD, AgsChannelThreadClass))


AGS_IS_CHANNEL_THREAD()

#define AGS_IS_CHANNEL_THREAD(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_CHANNEL_THREAD))


AGS_IS_CHANNEL_THREAD_CLASS()

#define AGS_IS_CHANNEL_THREAD_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_CHANNEL_THREAD))


ags_channel_thread_get_type ()

GType
ags_channel_thread_get_type ();

Types and Values

AGS_CHANNEL_THREAD_DEFAULT_JIFFIE

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


enum AgsChannelThreadFlags

Members

AGS_CHANNEL_THREAD_DONE

   

AGS_CHANNEL_THREAD_WAIT

   

AGS_CHANNEL_THREAD_DONE_SYNC

   

AGS_CHANNEL_THREAD_WAIT_SYNC

   

AGS_TYPE_CHANNEL_THREAD

#define AGS_TYPE_CHANNEL_THREAD                (ags_channel_thread_get_type())


struct AgsChannelThread

struct AgsChannelThread;


struct AgsChannelThreadClass

struct AgsChannelThreadClass {
  AgsThreadClass thread;
};

Property Details

The “channel” property

  “channel”                  AgsChannel *

The assigned AgsChannel.

Flags: Write

Since: 0.4.2


The “soundcard” property

  “soundcard”                GObject *

The assigned AgsChannel.

Flags: Write

Since: 0.7.0