/usr/include/ags/audio/ags_wave.h is in libags-audio-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 | /* GSequencer - Advanced GTK Sequencer
* Copyright (C) 2005-2018 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_WAVE_H__
#define __AGS_WAVE_H__
#include <glib.h>
#include <glib-object.h>
#include <libxml/tree.h>
#include <ags/libags.h>
#include <ags/audio/ags_buffer.h>
#define AGS_TYPE_WAVE (ags_wave_get_type())
#define AGS_WAVE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_WAVE, AgsWave))
#define AGS_WAVE_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_WAVE, AgsWaveClass))
#define AGS_IS_WAVE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_WAVE))
#define AGS_IS_WAVE_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), AGS_TYPE_WAVE))
#define AGS_WAVE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS (obj, AGS_TYPE_WAVE, AgsWaveClass))
#define AGS_WAVE_DEFAULT_BPM (120.0)
#define AGS_WAVE_TICS_PER_BEAT (1.0)
#define AGS_WAVE_MINIMUM_BUFFER_LENGTH (1.0 / 16.0)
#define AGS_WAVE_DEFAULT_LENGTH (65535.0 / AGS_WAVE_TICS_PER_BEAT - AGS_WAVE_MINIMUM_BUFFER_LENGTH)
#define AGS_WAVE_DEFAULT_JIFFIE (60.0 / AGS_WAVE_DEFAULT_BPM / AGS_WAVE_TICS_PER_BEAT)
#define AGS_WAVE_DEFAULT_DURATION (AGS_WAVE_DEFAULT_LENGTH * AGS_WAVE_DEFAULT_JIFFIE * AGS_MICROSECONDS_PER_SECOND)
#define AGS_WAVE_DEFAULT_OFFSET (64 * (1 / AGS_WAVE_MINIMUM_BUFFER_LENGTH))
#define AGS_WAVE_CLIPBOARD_VERSION "1.4.0"
#define AGS_WAVE_CLIPBOARD_TYPE "AgsWaveClipboardXml"
#define AGS_WAVE_CLIPBOARD_FORMAT "AgsWaveNativeLevel"
typedef struct _AgsWave AgsWave;
typedef struct _AgsWaveClass AgsWaveClass;
/**
* AgsWaveFlags:
* @AGS_WAVE_CONNECTED: indicates the wave was connected by calling #AgsConnectable::connect()
*
* Enum values to control the behavior or indicate internal state of #AgsWave by
* enable/disable as flags.
*/
typedef enum{
AGS_WAVE_CONNECTED = 1,
}AgsWaveFlags;
struct _AgsWave
{
GObject gobject;
guint flags;
AgsTimestamp *timestamp;
GObject *audio;
guint audio_channel;
guint samplerate;
guint buffer_size;
guint format;
GList *buffer;
gdouble loop_start;
gdouble loop_end;
gdouble offset;
GList *selection;
};
struct _AgsWaveClass
{
GObjectClass gobject;
};
GType ags_wave_get_type(void);
void ags_wave_set_samplerate(AgsWave *wave,
guint samplerate);
void ags_wave_set_buffer_size(AgsWave *wave,
guint buffer_size);
void ags_wave_set_format(AgsWave *wave,
guint format);
GList* ags_wave_find_near_timestamp(GList *wave, guint audio_channel,
AgsTimestamp *timestamp);
GList* ags_wave_add(GList *wave,
AgsWave *new_wave);
void ags_wave_add_buffer(AgsWave *wave,
AgsBuffer *buffer,
gboolean use_selection_list);
void ags_wave_remove_buffer(AgsWave *wave,
AgsBuffer *buffer,
gboolean use_selection_list);
GList* ags_wave_get_selection(AgsWave *wave);
gboolean ags_wave_is_buffer_selected(AgsWave *wave, AgsBuffer *buffer);
GList* ags_wave_find_region(AgsWave *wave,
guint x0,
guint x1,
gboolean use_selection_list);
void ags_wave_free_selection(AgsWave *wave);
void ags_wave_add_region_to_selection(AgsWave *wave,
guint x0, guint x1,
gboolean replace_current_selection);
void ags_wave_remove_region_from_selection(AgsWave *wave,
guint x0, guint x1);
void ags_wave_add_all_to_selection(AgsWave *wave);
xmlNode* ags_wave_copy_selection(AgsWave *wave);
xmlNode* ags_wave_cut_selection(AgsWave *wave);
void ags_wave_insert_from_clipboard(AgsWave *wave,
xmlNode *wave_node,
gboolean reset_x_offset, guint x_offset,
gdouble delay, guint attack);
void ags_wave_insert_from_clipboard_extended(AgsWave *wave,
xmlNode *wave_node,
gboolean reset_x_offset, guint x_offset,
gdouble delay, guint attack,
gboolean match_audio_channel, gboolean do_replace);
AgsWave* ags_wave_new(GObject *audio,
guint audio_channel);
#endif /*__AGS_WAVE_H__*/
|