AgsCancelChannel

AgsCancelChannel — cancel channel task

Functions

Properties

AgsChannel * channel Read / Write
gint sound-scope Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── AgsTask
        ╰── AgsCancelChannel

Includes

#include <ags/audio/task/ags_cancel_channel.h>

Description

The AgsCancelChannel task cancels AgsChannel playback.

Functions

ags_cancel_channel_new ()

AgsCancelChannel *
ags_cancel_channel_new (AgsChannel *channel,
                        gint sound_scope);

Create a new instance of AgsCancelChannel.

Parameters

channel

the AgsChannel to cancel

 

sound_scope

the AgsSoundScope or -1 for all

 

Returns

the new AgsCancelChannel.

Since: 3.0.0


AGS_CANCEL_CHANNEL()

#define AGS_CANCEL_CHANNEL(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_CANCEL_CHANNEL, AgsCancelChannel))

AGS_CANCEL_CHANNEL_CLASS()

#define AGS_CANCEL_CHANNEL_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_CANCEL_CHANNEL, AgsCancelChannelClass))

AGS_CANCEL_CHANNEL_GET_CLASS()

#define AGS_CANCEL_CHANNEL_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_CANCEL_CHANNEL, AgsCancelChannelClass))

AGS_IS_CANCEL_CHANNEL()

#define AGS_IS_CANCEL_CHANNEL(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_CANCEL_CHANNEL))

ags_cancel_channel_get_type ()

GType
ags_cancel_channel_get_type ();

Types and Values

AGS_TYPE_CANCEL_CHANNEL

#define AGS_TYPE_CANCEL_CHANNEL                (ags_cancel_channel_get_type())

struct AgsCancelChannel

struct AgsCancelChannel;

struct AgsCancelChannelClass

struct AgsCancelChannelClass {
  AgsTaskClass task;
};

Property Details

The “channel” property

  “channel”                  AgsChannel *

The assigned AgsChannel

Owner: AgsCancelChannel

Flags: Read / Write

Since: 3.0.0


The “sound-scope” property

  “sound-scope”              gint

The effects sound-scope.

Owner: AgsCancelChannel

Flags: Read / Write

Allowed values: [-1,5]

Default value: -1

Since: 3.0.0