AgsFxBufferChannel

AgsFxBufferChannel — fx buffer channel

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── AgsRecall
        ╰── AgsRecallChannel
            ╰── AgsFxBufferChannel

Implemented Interfaces

AgsFxBufferChannel implements AgsConnectable.

Includes

#include <ags/audio/fx/ags_fx_buffer_channel.h>

Description

The AgsFxBufferChannel class provides ports to the effect processor.

Functions

AGS_FX_BUFFER_CHANNEL_INPUT_DATA()

#define AGS_FX_BUFFER_CHANNEL_INPUT_DATA(ptr) ((AgsFxBufferChannelInputData *) (ptr))

AGS_FX_BUFFER_CHANNEL_INPUT_DATA_GET_STRCT_MUTEX()

#define AGS_FX_BUFFER_CHANNEL_INPUT_DATA_GET_STRCT_MUTEX(ptr) (&(((AgsFxBufferChannelInputData *)(ptr))->strct_mutex))

ags_fx_buffer_channel_input_data_alloc ()

AgsFxBufferChannelInputData *
ags_fx_buffer_channel_input_data_alloc
                               ();

Allocate AgsFxBufferChannelInputData

Returns

the new AgsFxBufferChannelInputData.

[type gpointer][transfer full]

Since: 3.3.0


ags_fx_buffer_channel_input_data_free ()

void
ags_fx_buffer_channel_input_data_free (AgsFxBufferChannelInputData *input_data);

Free input_data .

Parameters

input_data

the AgsFxBufferChannelInputData.

[type gpointer][transfer full]

Since: 3.3.0


ags_fx_buffer_channel_input_data_get_strct_mutex ()

GRecMutex *
ags_fx_buffer_channel_input_data_get_strct_mutex
                               (AgsFxBufferChannelInputData *input_data);

Get structure mutex.

Parameters

input_data

the AgsFxBufferChannelInputData.

[type gpointer][transfer none]

Returns

the GRecMutex to lock input_data .

[type gpointer][transfer none]

Since: 3.3.0


ags_fx_buffer_channel_input_get_parent ()

gpointer
ags_fx_buffer_channel_input_get_parent
                               (AgsFxBufferChannelInputData *input_data);

Get parent of input_data .

Parameters

input_data

the AgsFxBufferChannelInputData.

[type gpointer][transfer none]

Returns

the parent.

[type gpointer][transfer none]

Since: 3.3.0


ags_fx_buffer_channel_input_get_destination ()

gpointer
ags_fx_buffer_channel_input_get_destination
                               (AgsFxBufferChannelInputData *input_data);

Get destination of input_data .

Parameters

input_data

the AgsFxBufferChannelInputData.

[type gpointer][transfer none]

Returns

the destination.

[element-type AgsAudio.Recycling AgsAudio.AudioSignal][transfer none]

Since: 3.3.0


ags_fx_buffer_channel_get_input_data ()

AgsFxBufferChannelInputData *
ags_fx_buffer_channel_get_input_data (AgsFxBufferChannel *fx_buffer_channel,
                                      gint sound_scope);

Get input data from fx_buffer_channel by sound_scope .

Parameters

fx_buffer_channel

the AgsFxBufferChannel

 

sound_scope

the sound scope

 

Returns

the matching AgsFxBufferChannelInputData.

[type gpointer][transfer none]

Since: 3.3.0


ags_fx_buffer_channel_new ()

AgsFxBufferChannel *
ags_fx_buffer_channel_new (AgsChannel *channel);

Create a new instance of AgsFxBufferChannel

Parameters

channel

the AgsChannel

 

Returns

the new AgsFxBufferChannel

Since: 3.3.0


AGS_FX_BUFFER_CHANNEL()

#define AGS_FX_BUFFER_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_FX_BUFFER_CHANNEL, AgsFxBufferChannel))

AGS_FX_BUFFER_CHANNEL_CLASS()

#define AGS_FX_BUFFER_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_FX_BUFFER_CHANNEL, AgsFxBufferChannelClass))

AGS_FX_BUFFER_CHANNEL_GET_CLASS()

#define AGS_FX_BUFFER_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_FX_BUFFER_CHANNEL, AgsFxBufferChannelClass))

AGS_IS_FX_BUFFER_CHANNEL()

#define AGS_IS_FX_BUFFER_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_FX_BUFFER_CHANNEL))

AGS_IS_FX_BUFFER_CHANNEL_CLASS()

#define AGS_IS_FX_BUFFER_CHANNEL_CLASS(class)     (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_FX_BUFFER_CHANNEL))

ags_fx_buffer_channel_get_type ()

GType
ags_fx_buffer_channel_get_type ();

Types and Values

struct AgsFxBufferChannelInputData

struct AgsFxBufferChannelInputData {
  GRecMutex strct_mutex;

  gpointer parent;

  GHashTable *destination;
  GHashTable *resample_cache;
};

AGS_TYPE_FX_BUFFER_CHANNEL

#define AGS_TYPE_FX_BUFFER_CHANNEL                (ags_fx_buffer_channel_get_type())

struct AgsFxBufferChannel

struct AgsFxBufferChannel;

struct AgsFxBufferChannelClass

struct AgsFxBufferChannelClass {
  AgsRecallChannelClass recall_channel;
};