AgsNavigation

AgsNavigation — control audio object's playback.

Functions

Properties

GObject * soundcard Read / Write

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkObject
            ╰── GtkWidget
                ╰── GtkContainer
                    ╰── GtkBox
                        ╰── GtkVBox
                            ╰── AgsNavigation

Implemented Interfaces

AgsNavigation implements AtkImplementorIface, GtkBuildable, GtkOrientable and AgsConnectable.

Includes

#include <ags/X/ags_navigation.h>

Description

AgsNavigation is a composite widget to control playback of AgsAudio objects. It can start AgsMachine in bulk mode or position the stream.

Functions

ags_navigation_tact_to_time_string ()

gchar *
ags_navigation_tact_to_time_string (gdouble tact,
                                    gdouble bpm,
                                    gdouble delay_factor);

Convert tact unit to time.

Parameters

tact

the new position

 

bpm

the BPM

 

delay_factor

the delay factor

 

Returns

tact as time string

Since: 0.4


ags_navigation_relative_tact_to_time_string ()

gchar *
ags_navigation_relative_tact_to_time_string
                               (gchar *timestr,
                                gdouble delay,
                                gdouble bpm,
                                gdouble delay_factor);


ags_navigation_absolute_tact_to_time_string ()

gchar *
ags_navigation_absolute_tact_to_time_string
                               (gdouble tact,
                                gdouble bpm,
                                gdouble delay_factor);


ags_navigation_update_time_string ()

void
ags_navigation_update_time_string (double tact,
                                   gdouble bpm,
                                   gdouble delay_factor,
                                   gchar *time_string);

Updates time as string.

Parameters

tact

the new position

 

bpm

the BPM

 

delay_factor

the delay factor

 

time_string

the pointer location to set

 

Since: 0.4


ags_navigation_set_seeking_sensitive ()

void
ags_navigation_set_seeking_sensitive (AgsNavigation *navigation,
                                      gboolean enabled);


ags_navigation_change_position ()

void
ags_navigation_change_position (AgsNavigation *navigation,
                                gdouble tact);

Change tact position of editor. The scrollbar is adjustet and its playback position seeked.

Parameters

navigation

the AgsNavigation

 

tact

the new position

 

Since: 0.4


ags_navigation_duration_time_queue_draw ()

gboolean
ags_navigation_duration_time_queue_draw
                               (GtkWidget *widget);


ags_navigation_new ()

AgsNavigation *
ags_navigation_new ();

Creates an AgsNavigation to control the tree.

Returns

a new AgsNavigation

Since: 0.4

Types and Values

AGS_NAVIGATION_DEFAULT_TACT_STEP

#define AGS_NAVIGATION_DEFAULT_TACT_STEP (1.0)


AGS_NAVIGATION_SEEK_STEPS

#define AGS_NAVIGATION_SEEK_STEPS (1.0)


AGS_NAVIGATION_REWIND_STEPS

#define AGS_NAVIGATION_REWIND_STEPS (4.0)


enum AgsNavigationFlags

Members

AGS_NAVIGATION_BLOCK_TACT

   

AGS_NAVIGATION_BLOCK_PLAY

   

AGS_NAVIGATION_BLOCK_TIC

   

Property Details

The “soundcard” property

  “soundcard”                GObject *

The soundcard it is assigned with.

Flags: Read / Write

Since: 0.4

Signal Details

The “change-position” signal

void
user_function (AgsNavigation *navigation,
               gdouble        tact,
               gpointer       user_data)

Flags: Run Last