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 () |
AgsSoundcardFormat | ags_buffer_get_format () |
void | ags_buffer_set_format () |
gpointer | ags_buffer_get_data () |
AgsBuffer * | ags_buffer_duplicate () |
AgsBuffer * | ags_buffer_new () |
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
,AgsBufferFlags flags
);
Test flags
to be set on buffer
.
Since: 3.0.0
void ags_buffer_set_flags (AgsBuffer *buffer
,AgsBufferFlags flags
);
Set flags
on buffer
.
Since: 3.0.0
void ags_buffer_unset_flags (AgsBuffer *buffer
,AgsBufferFlags 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
AgsSoundcardFormat
ags_buffer_get_format (AgsBuffer *buffer
);
Gets format.
Since: 3.1.0
void ags_buffer_set_format (AgsBuffer *buffer
,AgsSoundcardFormat format
);
Set format.
Since: 3.0.0
AgsBuffer *
ags_buffer_duplicate (AgsBuffer *buffer
);
Duplicate a buffer.
Since: 3.0.0
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