Top |
#define | AGS_SEQUENCER_DEFAULT_SAMPLERATE |
#define | AGS_SEQUENCER_DEFAULT_BUFFER_SIZE |
#define | AGS_SEQUENCER_DEFAULT_DEVICE |
#define | AGS_SEQUENCER_DEFAULT_BPM |
#define | AGS_SEQUENCER_DEFAULT_DELAY_FACTOR |
#define | AGS_SEQUENCER_DEFAULT_JIFFIE |
#define | AGS_SEQUENCER_DEFAULT_TACT |
#define | AGS_SEQUENCER_DEFAULT_TACT_JIFFIE |
#define | AGS_SEQUENCER_DEFAULT_TACTRATE |
#define | AGS_SEQUENCER_DEFAULT_SCALE |
#define | AGS_SEQUENCER_DEFAULT_DELAY |
#define | AGS_SEQUENCER_DEFAULT_PERIOD |
#define | AGS_SEQUENCER_DEFAULT_LATENCY |
void ags_sequencer_set_application_context (AgsSequencer *sequencer
,AgsApplicationContext *application_context
);
Set application context.
Since: 0.7.0
AgsApplicationContext *
ags_sequencer_get_application_context (AgsSequencer *sequencer
);
Get application context.
Since: 0.7.0
void ags_sequencer_set_application_mutex (AgsSequencer *sequencer
,pthread_mutex_t *application_mutex
);
Set application mutex.
Since: 0.7.0
pthread_mutex_t *
ags_sequencer_get_application_mutex (AgsSequencer *sequencer
);
Get application mutex.
Since: 0.7.0
void ags_sequencer_set_device (AgsSequencer *sequencer
,gchar *device_id
);
Set device.
Since: 0.7.0
gchar *
ags_sequencer_get_device (AgsSequencer *sequencer
);
Get device.
Since: 0.7.0
void ags_sequencer_list_cards (AgsSequencer *sequencer
,GList **card_id
,GList **card_name
);
Retrieve card_id
and card_name
as a list of strings.
sequencer |
an AgsSequencer |
|
card_id |
a list containing card ids |
|
card_name |
a list containing card names |
Since: 0.7.0
gboolean
ags_sequencer_is_starting (AgsSequencer *sequencer
);
Get starting.
Since: 0.7.0
gboolean
ags_sequencer_is_playing (AgsSequencer *sequencer
);
Get playing.
Since: 0.7.0
gboolean
ags_sequencer_is_recording (AgsSequencer *sequencer
);
Get recording.
Since: 0.7.0
void ags_sequencer_play (AgsSequencer *sequencer
,GError **error
);
Plays the current buffer of sequencer.
Since: 0.7.0
void ags_sequencer_record_init (AgsSequencer *sequencer
,GError **error
);
void ags_sequencer_record (AgsSequencer *sequencer
,GError **error
);
Records the current buffer of sequencer.
Since: 0.7.0
void
ags_sequencer_stop (AgsSequencer *sequencer
);
Stops the sequencer from playing to it.
Since: 0.7.0
void
ags_sequencer_tic (AgsSequencer *sequencer
);
Callback when counter expires minor note offset.
Since: 0.7.0
void ags_sequencer_offset_changed (AgsSequencer *sequencer
,guint note_offset
);
void * ags_sequencer_get_buffer (AgsSequencer *sequencer
,guint *buffer_length
);
Get current playback buffer.
Since: 0.7.0
void * ags_sequencer_get_next_buffer (AgsSequencer *sequencer
,guint *buffer_length
);
Get future playback buffer.
Since: 0.7.0
void ags_sequencer_set_bpm (AgsSequencer *sequencer
,gdouble bpm
);
Set current playback bpm.
Since: 0.7.0
gdouble
ags_sequencer_get_bpm (AgsSequencer *sequencer
);
Get current playback bpm.
Since: 0.7.0
void ags_sequencer_set_delay_factor (AgsSequencer *sequencer
,gdouble delay_factor
);
Set current playback delay factor.
Since: 0.7.0
gdouble
ags_sequencer_get_delay_factor (AgsSequencer *sequencer
);
Get current playback delay factor.
Since: 0.7.0
void ags_sequencer_set_note_offset (AgsSequencer *sequencer
,guint note_offset
);
Set current playback note offset.
Since: 0.7.0
guint
ags_sequencer_get_note_offset (AgsSequencer *sequencer
);
Get current playback note offset.
Since: 0.7.0
void ags_sequencer_set_audio (AgsSequencer *sequencer
,GList *audio
);
Set audio.
Since: 0.7.0
GList *
ags_sequencer_get_audio (AgsSequencer *sequencer
);
Get audio.
Since: 0.7.0
#define AGS_SEQUENCER_DEFAULT_JIFFIE ((double) AGS_SEQUENCER_DEFAULT_SAMPLERATE / (double) AGS_SEQUENCER_DEFAULT_BUFFER_SIZE)
#define AGS_SEQUENCER_DEFAULT_TACT_JIFFIE (60.0 / AGS_SEQUENCER_DEFAULT_BPM * AGS_SEQUENCER_DEFAULT_TACT)
#define AGS_SEQUENCER_DEFAULT_TACTRATE (1.0 / AGS_SEQUENCER_DEFAULT_TACT_JIFFIE)
#define AGS_SEQUENCER_DEFAULT_DELAY (AGS_SEQUENCER_DEFAULT_JIFFIE * (60.0 / AGS_SEQUENCER_DEFAULT_BPM))
“offset-changed”
signalvoid user_function (AgsSequencer *sequencer, guint note_offset, gpointer user_data)
Flags: Run Last