krähemann.com

AgsCountable

AgsCountable — a counter interface

Stability Level

Stable, unless otherwise indicated

Types and Values

Object Hierarchy

    GInterface
    ╰── AgsCountable

Includes

#include <ags/object/ags_countable.h>

Description

The AgsCountable interface gives you a unique access to counters. Generally we distinguish between notation and sequencer counters. Those may have their own relative positions, especially the sequencers may loop.

Functions

ags_countable_get_sequencer_counter ()

guint64
ags_countable_get_sequencer_counter (AgsCountable *countable);

Retrieve current position of sequencer.

Parameters

countable

an AgsCountable

 

Returns

the current position

Since: 3.0.0


ags_countable_get_notation_counter ()

guint64
ags_countable_get_notation_counter (AgsCountable *countable);

Retrieve current position of notation.

Parameters

countable

an AgsCountable

 

Returns

the current position

Since: 3.0.0


ags_countable_get_wave_counter ()

guint64
ags_countable_get_wave_counter (AgsCountable *countable);

Retrieve current position of wave.

Parameters

countable

an AgsCountable

 

Returns

the current position

Since: 3.0.0


ags_countable_get_midi_counter ()

guint64
ags_countable_get_midi_counter (AgsCountable *countable);

Retrieve current position of MIDI.

Parameters

countable

an AgsCountable

 

Returns

the current position

Since: 3.0.0


AGS_COUNTABLE()

#define AGS_COUNTABLE(obj)                    (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_COUNTABLE, AgsCountable))

AGS_COUNTABLE_GET_INTERFACE()

#define AGS_COUNTABLE_GET_INTERFACE(obj)      (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_COUNTABLE, AgsCountableInterface))

AGS_COUNTABLE_INTERFACE()

#define AGS_COUNTABLE_INTERFACE(vtable)       (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_COUNTABLE, AgsCountableInterface))

AGS_IS_COUNTABLE()

#define AGS_IS_COUNTABLE(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_COUNTABLE))

AGS_IS_COUNTABLE_INTERFACE()

#define AGS_IS_COUNTABLE_INTERFACE(vtable)    (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_COUNTABLE))

ags_countable_get_type ()

GType
ags_countable_get_type ();

Types and Values

AGS_TYPE_COUNTABLE

#define AGS_TYPE_COUNTABLE                    (ags_countable_get_type())

AgsCountable

typedef struct _AgsCountable AgsCountable;

struct AgsCountableInterface

struct AgsCountableInterface {
  GTypeInterface ginterface;

  guint64 (*get_sequencer_counter)(AgsCountable *countable);
  guint64 (*get_notation_counter)(AgsCountable *countable);
  guint64 (*get_wave_counter)(AgsCountable *countable);
  guint64 (*get_midi_counter)(AgsCountable *countable);
};