AgsTrack

AgsTrack — Track class.

Functions

Properties

gpointer smf-buffer Read / Write
guint64 x Read / Write

Types and Values

enum AgsTrackFlags
#define AGS_TYPE_TRACK
struct AgsTrack
struct AgsTrackClass

Object Hierarchy

    GObject
    ╰── AgsTrack

Includes

#include <ags/audio/ags_track.h>

Description

AgsTrack represents a tone.

Functions

AGS_TRACK_GET_OBJ_MUTEX()

#define AGS_TRACK_GET_OBJ_MUTEX(obj) (&(((AgsTrack *) obj)->obj_mutex))

ags_track_test_flags ()

gboolean
ags_track_test_flags (AgsTrack *track,
                      guint flags);

Test flags to be set on track .

Parameters

track

the AgsTrack

 

flags

the flags

 

Returns

TRUE if flags are set, else FALSE

Since: 3.0.0


ags_track_set_flags ()

void
ags_track_set_flags (AgsTrack *track,
                     guint flags);

Set flags on track .

Parameters

track

the AgsTrack

 

flags

the flags

 

Since: 3.0.0


ags_track_unset_flags ()

void
ags_track_unset_flags (AgsTrack *track,
                       guint flags);

Unset flags on track .

Parameters

track

the AgsTrack

 

flags

the flags

 

Since: 3.0.0


ags_track_sort_func ()

gint
ags_track_sort_func (gconstpointer a,
                     gconstpointer b);

Sort tracks.

Parameters

a

an AgsTrack

 

b

an AgsTrack

 

Returns

0 if equal, -1 if smaller and 1 if bigger offset

Since: 3.0.0


ags_track_duplicate ()

AgsTrack *
ags_track_duplicate (AgsTrack *track);

Duplicate a track.

Parameters

track

an AgsTrack

 

Returns

the duplicated AgsTrack.

[transfer full]

Since: 3.0.0


ags_track_new ()

AgsTrack *
ags_track_new ();

Creates a new instance of AgsTrack.

Returns

the new AgsTrack

Since: 3.0.0


AGS_IS_TRACK()

#define AGS_IS_TRACK(obj)             (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_TRACK))

AGS_TRACK()

#define AGS_TRACK(obj)                (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_TRACK, AgsTrack))

AGS_TRACK_CLASS()

#define AGS_TRACK_CLASS(class)        (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_TRACK, AgsTrackClass))

AGS_TRACK_GET_CLASS()

#define AGS_TRACK_GET_CLASS(obj)      (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_TRACK, AgsTrackClass))

ags_track_get_type ()

GType
ags_track_get_type ();

Types and Values

enum AgsTrackFlags

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

Members

AGS_TRACK_IS_SELECTED

is selected

 

AGS_TYPE_TRACK

#define AGS_TYPE_TRACK                (ags_track_get_type())

struct AgsTrack

struct AgsTrack;

struct AgsTrackClass

struct AgsTrackClass {
  GObjectClass gobject;
};

Property Details

The “smf-buffer” property

  “smf-buffer”               gpointer

Track's SMF buffer.

Owner: AgsTrack

Flags: Read / Write

Since: 3.0.0


The “x” property

  “x”                        guint64

Track's x offset.

Owner: AgsTrack

Flags: Read / Write

Default value: 0

Since: 3.0.0