/usr/include/ags/object/ags_sequencer.h is in libags-dev 1.4.24-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | /* GSequencer - Advanced GTK Sequencer
* Copyright (C) 2005-2015 Joël Krähemann
*
* This file is part of GSequencer.
*
* GSequencer is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* GSequencer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GSequencer. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __AGS_SEQUENCER_H__
#define __AGS_SEQUENCER_H__
#include <glib.h>
#include <glib-object.h>
#include <ags/object/ags_application_context.h>
#include <pthread.h>
#define AGS_TYPE_SEQUENCER (ags_sequencer_get_type())
#define AGS_SEQUENCER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_SEQUENCER, AgsSequencer))
#define AGS_SEQUENCER_INTERFACE(vtable) (G_TYPE_CHECK_CLASS_CAST((vtable), AGS_TYPE_SEQUENCER, AgsSequencerInterface))
#define AGS_IS_SEQUENCER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), AGS_TYPE_SEQUENCER))
#define AGS_IS_SEQUENCER_INTERFACE(vtable) (G_TYPE_CHECK_CLASS_TYPE((vtable), AGS_TYPE_SEQUENCER))
#define AGS_SEQUENCER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE((obj), AGS_TYPE_SEQUENCER, AgsSequencerInterface))
typedef struct _AgsSequencer AgsSequencer;
typedef struct _AgsSequencerInterface AgsSequencerInterface;
#define AGS_SEQUENCER_DEFAULT_SAMPLERATE (44100.0)
#define AGS_SEQUENCER_DEFAULT_BUFFER_SIZE (944)
#define AGS_SEQUENCER_DEFAULT_DEVICE "hw:0"
#define AGS_SEQUENCER_DEFAULT_BPM (120.0)
#define AGS_SEQUENCER_DEFAULT_DELAY_FACTOR (1.0 / 4.0)
#define AGS_SEQUENCER_DEFAULT_JIFFIE ((double) AGS_SEQUENCER_DEFAULT_SAMPLERATE / (double) AGS_SEQUENCER_DEFAULT_BUFFER_SIZE)
#define AGS_SEQUENCER_DEFAULT_TACT (1.0 / 1.0)
#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_SCALE (1.0)
#define AGS_SEQUENCER_DEFAULT_DELAY (AGS_SEQUENCER_DEFAULT_JIFFIE * (60.0 / AGS_SEQUENCER_DEFAULT_BPM))
#define AGS_SEQUENCER_DEFAULT_PERIOD (64.0)
#define AGS_SEQUENCER_DEFAULT_LATENCY (400)
struct _AgsSequencerInterface
{
GTypeInterface ginterface;
void (*set_application_context)(AgsSequencer *sequencer,
AgsApplicationContext *application_context);
AgsApplicationContext* (*get_application_context)(AgsSequencer *sequencer);
void (*set_application_mutex)(AgsSequencer *sequencer,
pthread_mutex_t *application_mutex);
pthread_mutex_t* (*get_application_mutex)(AgsSequencer *sequencer);
void (*set_device)(AgsSequencer *sequencer,
gchar *card_id);
gchar* (*get_device)(AgsSequencer *sequencer);
void (*list_cards)(AgsSequencer *sequencer,
GList **card_id, GList **card_name);
gboolean (*is_starting)(AgsSequencer *sequencer);
gboolean (*is_playing)(AgsSequencer *sequencer);
gboolean (*is_recording)(AgsSequencer *sequencer);
void (*play_init)(AgsSequencer *sequencer,
GError **error);
void (*play)(AgsSequencer *sequencer,
GError **error);
void (*record_init)(AgsSequencer *sequencer,
GError **error);
void (*record)(AgsSequencer *sequencer,
GError **error);
void (*stop)(AgsSequencer *sequencer);
void (*tic)(AgsSequencer *sequencer);
void (*offset_changed)(AgsSequencer *sequencer,
guint note_offset);
void* (*get_buffer)(AgsSequencer *sequencer,
guint *buffer_length);
void* (*get_next_buffer)(AgsSequencer *sequencer,
guint *buffer_length);
void (*set_bpm)(AgsSequencer *sequencer,
gdouble bpm);
gdouble (*get_bpm)(AgsSequencer *sequencer);
void (*set_delay_factor)(AgsSequencer *sequencer,
gdouble delay_factor);
gdouble (*get_delay_factor)(AgsSequencer *sequencer);
void (*set_note_offset)(AgsSequencer *sequencer,
guint note_offset);
guint (*get_note_offset)(AgsSequencer *sequencer);
void (*set_audio)(AgsSequencer *sequencer,
GList *audio);
GList* (*get_audio)(AgsSequencer *sequencer);
};
GType ags_sequencer_get_type();
void ags_sequencer_set_application_context(AgsSequencer *sequencer,
AgsApplicationContext *application_context);
AgsApplicationContext* ags_sequencer_get_application_context(AgsSequencer *sequencer);
void ags_sequencer_set_application_mutex(AgsSequencer *sequencer,
pthread_mutex_t *application_mutex);
pthread_mutex_t* ags_sequencer_get_application_mutex(AgsSequencer *sequencer);
void ags_sequencer_set_device(AgsSequencer *sequencer,
gchar *device_id);
gchar* ags_sequencer_get_device(AgsSequencer *sequencer);
void ags_sequencer_list_cards(AgsSequencer *sequencer,
GList **card_id, GList **card_name);
gboolean ags_sequencer_is_starting(AgsSequencer *sequencer);
gboolean ags_sequencer_is_playing(AgsSequencer *sequencer);
gboolean ags_sequencer_is_recording(AgsSequencer *sequencer);
void ags_sequencer_play_init(AgsSequencer *sequencer,
GError **error);
void ags_sequencer_play(AgsSequencer *sequencer,
GError **error);
void ags_sequencer_record_init(AgsSequencer *sequencer,
GError **error);
void ags_sequencer_record(AgsSequencer *sequencer,
GError **error);
void ags_sequencer_stop(AgsSequencer *sequencer);
void ags_sequencer_tic(AgsSequencer *sequencer);
void ags_sequencer_offset_changed(AgsSequencer *sequencer,
guint note_offset);
void* ags_sequencer_get_buffer(AgsSequencer *sequencer,
guint *buffer_length);
void* ags_sequencer_get_next_buffer(AgsSequencer *sequencer,
guint *buffer_length);
void ags_sequencer_set_bpm(AgsSequencer *sequencer,
gdouble bpm);
gdouble ags_sequencer_get_bpm(AgsSequencer *sequencer);
void ags_sequencer_set_delay_factor(AgsSequencer *sequencer,
gdouble delay_factor);
gdouble ags_sequencer_get_delay_factor(AgsSequencer *sequencer);
void ags_sequencer_set_note_offset(AgsSequencer *sequencer,
guint note_offset);
guint ags_sequencer_get_note_offset(AgsSequencer *sequencer);
void ags_sequencer_set_audio(AgsSequencer *sequencer,
GList *audio);
GList* ags_sequencer_get_audio(AgsSequencer *sequencer);
#endif /*__AGS_SEQUENCER_H__*/
|