AgsRecycling

AgsRecycling — A container of audio signals

Functions

Properties

AgsAudioSignal * audio-signal Read / Write
AgsChannel * channel Read / Write
AgsRecycling * next Read / Write
AgsRecycling * parent Read / Write
AgsRecycling * prev Read / Write
GObject * soundcard Read / Write

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── AgsRecycling

Implemented Interfaces

AgsRecycling implements AgsConnectable and AgsConcurrentTree.

Includes

#include <ags/audio/ags_recycling.h>

Description

AgsRecycling forms the nested tree of AgsChannel. Ever channel having own audio signal contains therefor an AgsRecycling

Functions

ags_recycling_set_soundcard ()

void
ags_recycling_set_soundcard (AgsRecycling *recycling,
                             GObject *soundcard);

Sets GObject to recycling.

Parameters

recycling

an AgsRecycling

 

soundcard

the GObject to set

 

Since: 0.3


ags_recycling_add_audio_signal ()

void
ags_recycling_add_audio_signal (AgsRecycling *recycling,
                                AgsAudioSignal *audio_signal);

Add AgsAudioSignal to recycling.

Parameters

recycling

an AgsRecycling

 

audio_signal

the AgsAudioSignal to add

 

Since: 0.3


ags_recycling_remove_audio_signal ()

void
ags_recycling_remove_audio_signal (AgsRecycling *recycling,
                                   AgsAudioSignal *audio_signal);

Remove AgsAudioSignal of recycling.

Parameters

recycling

an AgsRecycling

 

audio_signal

the AgsAudioSignal to remove

 

Since: 0.3


ags_recycling_create_audio_signal_with_defaults ()

void
ags_recycling_create_audio_signal_with_defaults
                               (AgsRecycling *recycling,
                                AgsAudioSignal *audio_signal,
                                gdouble delay,
                                guint attack);

Create audio signal with defaults.

Parameters

recycling

an AgsRecycling

 

audio_signal

the AgsAudioSignal to apply defaults

 

delay

the delay

 

attack

the attack

 

Since: 0.4


ags_recycling_create_audio_signal_with_frame_count ()

void
ags_recycling_create_audio_signal_with_frame_count
                               (AgsRecycling *recycling,
                                AgsAudioSignal *audio_signal,
                                guint frame_count,
                                gdouble delay,
                                guint attack);

Create audio signal with frame count.

Parameters

recycling

an AgsRecycling

 

audio_signal

the AgsAudioSignal to apply defaults

 

frame_count

the audio data size

 

delay

the delay

 

attack

the attack

 

Since: 0.4


ags_recycling_position ()

gint
ags_recycling_position (AgsRecycling *start_region,
                        AgsRecycling *end_region,
                        AgsRecycling *recycling);

Retrieve position of recycling.

Parameters

start_region

boundary start

 

end_region

boundary end

 

recycling

matching recycling

 

Returns

position within boundary.

Since: 0.4


ags_recycling_find_next_channel ()

AgsRecycling *
ags_recycling_find_next_channel (AgsRecycling *start_region,
                                 AgsRecycling *end_region,
                                 GObject *prev_channel);

Retrieve next recycling with different channel.

Parameters

start_region

boundary start

 

end_region

boundary end

 

prev_channel

previous channel

 

Returns

Matching recycling.

Since: 0.4


ags_recycling_new ()

AgsRecycling *
ags_recycling_new (GObject *soundcard);

Creates a AgsRecycling, with defaults of soundcard .

Parameters

soundcard

the GObject

 

Returns

a new AgsRecycling

Since: 0.3

Types and Values

enum AgsRecyclingFlags

Members

AGS_RECYCLING_MUTED

   

Property Details

The “audio-signal” property

  “audio-signal”             AgsAudioSignal *

The audio signal it contains.

Flags: Read / Write

Since: 0.7.2


The “channel” property

  “channel”                  AgsChannel *

The channel it is assigned with.

Flags: Read / Write

Since: 0.4.0


The “next” property

  “next”                     AgsRecycling *

The next it is assigned with.

Flags: Read / Write

Since: 0.7.2


The “parent” property

  “parent”                   AgsRecycling *

The parent it is assigned with.

Flags: Read / Write

Since: 0.7.2


The “prev” property

  “prev”                     AgsRecycling *

The prev it is assigned with.

Flags: Read / Write

Since: 0.7.2


The “soundcard” property

  “soundcard”                GObject *

The soundcard it is assigned with.

Flags: Read / Write

Since: 0.4.0

Signal Details

The “add-audio-signal” signal

void
user_function (AgsRecycling *recycling,
               GObject      *audio_signal,
               gpointer      user_data)

Flags: Run Last


The “remove-audio-signal” signal

void
user_function (AgsRecycling *recycling,
               GObject      *audio_signal,
               gpointer      user_data)

Flags: Run Last