Top | ![]() |
![]() |
![]() |
![]() |
#define | AGS_BUFFER_GET_OBJ_MUTEX() |
GRecMutex * | ags_buffer_get_obj_mutex () |
void | ags_buffer_lock () |
void | ags_buffer_unlock () |
gboolean | ags_buffer_test_flags () |
void | ags_buffer_set_flags () |
void | ags_buffer_unset_flags () |
gint | ags_buffer_sort_func () |
guint64 | ags_buffer_get_x () |
void | ags_buffer_set_x () |
guint | ags_buffer_get_samplerate () |
void | ags_buffer_set_samplerate () |
guint | ags_buffer_get_buffer_size () |
void | ags_buffer_set_buffer_size () |
guint | ags_buffer_get_format () |
void | ags_buffer_set_format () |
gpointer | ags_buffer_get_data () |
AgsBuffer * | ags_buffer_duplicate () |
AgsBuffer * | ags_buffer_new () |
#define | AGS_BUFFER() |
#define | AGS_BUFFER_CLASS() |
#define | AGS_BUFFER_GET_CLASS() |
#define | AGS_IS_BUFFER() |
#define | AGS_IS_BUFFER_CLASS() |
GType | ags_buffer_flags_get_type () |
GType | ags_buffer_get_type () |
guint | buffer-size | Read / Write |
gpointer | data | Read / Write |
guint | format | Read / Write |
guint | samplerate | Read / Write |
guint64 | selection-x0 | Read / Write |
guint64 | selection-x1 | Read / Write |
guint64 | x | Read / Write |
AgsBuffer represents audio data. If you want to modify data
property you
have to lock the buffer using ags_buffer_lock()
and when you are done release it
using ags_buffer_unlock()
.
The x
property is the offset in frames matching samplerate.
#define AGS_BUFFER_GET_OBJ_MUTEX(obj) (&(((AgsBuffer *) obj)->obj_mutex))
GRecMutex *
ags_buffer_get_obj_mutex (AgsBuffer *buffer
);
Get object mutex.
Since: 3.1.0
gboolean ags_buffer_test_flags (AgsBuffer *buffer
,guint flags
);
Test flags
to be set on buffer
.
Since: 3.0.0
void ags_buffer_set_flags (AgsBuffer *buffer
,guint flags
);
Set flags
on buffer
.
Since: 3.0.0
void ags_buffer_unset_flags (AgsBuffer *buffer
,guint flags
);
Unset flags
on buffer
.
Since: 3.0.0
gint ags_buffer_sort_func (gconstpointer a
,gconstpointer b
);
Sort buffers.
Since: 3.0.0
guint
ags_buffer_get_samplerate (AgsBuffer *buffer
);
Gets samplerate.
Since: 3.1.0
void ags_buffer_set_samplerate (AgsBuffer *buffer
,guint samplerate
);
Set samplerate.
Since: 3.0.0
guint
ags_buffer_get_buffer_size (AgsBuffer *buffer
);
Gets buffer size.
Since: 3.1.0
void ags_buffer_set_buffer_size (AgsBuffer *buffer
,guint buffer_size
);
Set buffer size.
Since: 3.0.0
void ags_buffer_set_format (AgsBuffer *buffer
,guint format
);
Set format.
Since: 3.0.0
AgsBuffer *
ags_buffer_duplicate (AgsBuffer *buffer
);
Duplicate a buffer.
Since: 3.0.0
#define AGS_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_BUFFER, AgsBuffer))
#define AGS_BUFFER_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_BUFFER, AgsBufferClass))
#define AGS_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_BUFFER, AgsBufferClass))
#define AGS_IS_BUFFER_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_BUFFER))
Enum values to control the behavior or indicate internal state of AgsBuffer by enable/disable as flags.
“buffer-size”
property“buffer-size” guint
Buffer's audio data buffer size.
Owner: AgsBuffer
Flags: Read / Write
Default value: 1024
Since: 3.0.0
“data”
property“data” gpointer
Buffer's audio data.
Owner: AgsBuffer
Flags: Read / Write
Since: 3.0.0
“format”
property“format” guint
Buffer's audio data format.
Owner: AgsBuffer
Flags: Read / Write
Default value: 16
Since: 3.0.0
“samplerate”
property“samplerate” guint
Buffer's audio data samplerate.
Owner: AgsBuffer
Flags: Read / Write
Default value: 48000
Since: 3.0.0
“selection-x0”
property“selection-x0” guint64
Buffer's selection x0 offset.
Owner: AgsBuffer
Flags: Read / Write
Default value: 0
Since: 3.0.0
“selection-x1”
property“selection-x1” guint64
Buffer's selection x1 offset.
Owner: AgsBuffer
Flags: Read / Write
Default value: 0
Since: 3.0.0
“x”
property“x” guint64
Buffer's x offset.
Owner: AgsBuffer
Flags: Read / Write
Default value: 0
Since: 3.0.0