Top | ![]() |
![]() |
![]() |
![]() |
guint | attack | Read / Write |
guint | buffer-size | Read / Write |
AgsComplex * | damping | Read / Write |
gdouble | delay | Read / Write |
guint | first-frame | Read / Write |
guint | format | Read / Write |
guint | frame-count | Read / Write |
GObject * | input-soundcard | Read / Write |
gint | input-soundcard-channel | Read / Write |
guint | last-frame | Read / Write |
guint | length | Read / Write |
guint | loop-end | Read / Write |
guint | loop-start | Read / Write |
gpointer | note | Read / Write |
GObject * | output-soundcard | Read / Write |
gint | output-soundcard-channel | Read / Write |
AgsRecallID * | recall-id | Read / Write |
AgsRecycling * | recycling | Read / Write |
AgsAudioSignal * | rt-template | Read / Write |
guint | samplerate | Read / Write |
gpointer | stream | Read |
gpointer | stream-current | Read |
gpointer | stream-end | Read |
AgsAudioSignal * | template | Read / Write |
guint | timbre-end | Read / Write |
guint | timbre-start | Read / Write |
AgsComplex * | vibration | Read / Write |
guint | word-size | Read |
enum | AgsAudioSignalFlags |
#define | AGS_TYPE_AUDIO_SIGNAL |
struct | AgsAudioSignal |
struct | AgsAudioSignalClass |
#define AGS_AUDIO_SIGNAL_GET_OBJ_MUTEX(obj) (((AgsAudioSignal *) obj)->obj_mutex)
#define AGS_AUDIO_SIGNAL_GET_STREAM_MUTEX(obj) (((AgsAudioSignal *) obj)->stream_mutex)
pthread_mutex_t *
ags_audio_signal_get_class_mutex ();
Use this function's returned mutex to access mutex fields.
Since: 2.0.0
gboolean ags_audio_signal_test_flags (AgsAudioSignal *audio_signal
,guint flags
);
Test flags
to be set on audio_signal
.
Since: 2.0.0
void ags_audio_signal_set_flags (AgsAudioSignal *audio_signal
,guint flags
);
Enable a feature of audio_signal
.
Since: 2.0.0
void ags_audio_signal_unset_flags (AgsAudioSignal *audio_signal
,guint flags
);
Disable a feature of audio_signal
.
Since: 2.0.0
void * ags_stream_alloc (guint buffer_size
,guint format
);
Allocs an audio buffer.
Since: 2.0.0
void ags_audio_signal_set_output_soundcard (AgsAudioSignal *audio_signal
,GObject *output_soundcard
);
Set output soundcarod of audio_signal
.
Since: 2.0.0
void ags_audio_signal_set_input_soundcard (AgsAudioSignal *audio_signal
,GObject *input_soundcard
);
Set input soundcarod of audio_signal
.
Since: 2.0.0
void ags_audio_signal_set_samplerate (AgsAudioSignal *audio_signal
,guint samplerate
);
Set samplerate.
Since: 2.0.0
void ags_audio_signal_set_buffer_size (AgsAudioSignal *audio_signal
,guint buffer_size
);
Set buffer size.
Since: 2.0.0
void ags_audio_signal_set_format (AgsAudioSignal *audio_signal
,guint format
);
Set format.
Since: 2.0.0
void ags_audio_signal_add_note (AgsAudioSignal *audio_signal
,GObject *note
);
Add note to audio_signal
.
Since: 2.0.0
void ags_audio_signal_remove_note (AgsAudioSignal *audio_signal
,GObject *note
);
Remove note from audio_signal
.
Since: 2.0.0
void
ags_audio_signal_add_stream (AgsAudioSignal *audio_signal
);
Adds a buffer at the end of the stream.
Since: 2.0.0
void ags_audio_signal_stream_resize (AgsAudioSignal *audio_signal
,guint length
);
Resize stream of audio_signal
to length
number of buffers.
Since: 2.0.0
void ags_audio_signal_stream_safe_resize (AgsAudioSignal *audio_signal
,guint length
);
Resize stream of audio_signal
to length
number of buffers. But doesn't shrink
more than the current stream position.
Since: 2.0.0
void ags_audio_signal_duplicate_stream (AgsAudioSignal *audio_signal
,AgsAudioSignal *template
);
Apply template
audio data to audio_signal
. Note should only be invoked
by proper recall context because only the stream of template
is locked.
Since: 2.0.0
void ags_audio_signal_feed (AgsAudioSignal *audio_signal
,AgsAudioSignal *template
,guint frame_count
);
Feed audio signal to grow upto frame count.
audio_signal |
the AgsAudioSignal |
|
template |
the template AgsAudioSignal |
|
frame_count |
the new frame count |
Since: 2.0.0
guint
ags_audio_signal_get_length_till_current
(AgsAudioSignal *audio_signal
);
Counts the buffers from :stream upto :stream-current.
Since: 2.0.0
AgsAudioSignal *
ags_audio_signal_get_template (GList *audio_signal
);
Retrieve the template audio signal.
Since: 2.0.0
GList *
ags_audio_signal_get_rt_template (GList *audio_signal
);
Retrieve the realtime template audio signal.
Since: 2.0.0
GList * ags_audio_signal_find_stream_current (GList *audio_signal
,GObject *recall_id
);
Retrieve next current stream of AgsAudioSignal list. Warning this function does not lock the stream mutex.
Since: 2.0.0
GList * ags_audio_signal_find_by_recall_id (GList *audio_signal
,GObject *recall_id
);
Retrieve next audio signal refering to recall_id
Since: 2.0.0
gboolean ags_audio_signal_is_active (GList *audio_signal
,GObject *recall_id
);
Check if is active.
Since: 2.0.0
AgsAudioSignal * ags_audio_signal_new (GObject *output_soundcard
,GObject *recycling
,GObject *recall_id
);
Creates a AgsAudioSignal, with defaults of output_soundcard
, linking recycling
tree
and refering to recall_id
.
output_soundcard |
the assigned output AgsSoundcard |
|
recycling |
the AgsRecycling |
|
recall_id |
the AgsRecallID, it can be NULL if |
Since: 2.0.0
AgsAudioSignal * ags_audio_signal_new_with_length (GObject *output_soundcard
,GObject *recycling
,GObject *recall_id
,guint length
);
Creates a AgsAudioSignal, with defaults of soundcard
, linking recycling
tree
and refering to recall_id
.
The audio data is tiled to length
frame count.
output_soundcard |
the assigned output AgsSoundcard |
|
recycling |
the AgsRecycling |
|
recall_id |
the AgsRecallID, it can be NULL if |
|
length |
audio data frame count |
Since: 2.0.0
#define AGS_AUDIO_SIGNAL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_AUDIO_SIGNAL, AgsAudioSignal))
#define AGS_AUDIO_SIGNAL_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUDIO_SIGNAL, AgsAudioSignalClass))
#define AGS_AUDIO_SIGNAL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_AUDIO_SIGNAL, AgsAudioSignalClass))
#define AGS_IS_AUDIO_SIGNAL(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_AUDIO_SIGNAL))
Enum values to control the behavior or indicate internal state of AgsAudioSignal by enable/disable as flags.
“attack”
property“attack” guint
The attack to be used.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“buffer-size”
property“buffer-size” guint
The buffer size to be used.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“delay”
property“delay” gdouble
The delay to be used.
Flags: Read / Write
Allowed values: >= 0
Default value: 0
Since: 2.0.0
“first-frame”
property“first-frame” guint
The first frame of stream.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“format”
property“format” guint
The format to be used.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“frame-count”
property“frame-count” guint
The initial size of audio data.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“input-soundcard”
property“input-soundcard” GObject *
The assigned input AgsSoundcard.
Flags: Read / Write
Since: 2.0.0
“input-soundcard-channel”
property“input-soundcard-channel” gint
The input soundcard channel.
Flags: Read / Write
Allowed values: >= -1
Default value: 0
Since: 2.0.0
“last-frame”
property“last-frame” guint
The last frame of stream.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“length”
property“length” guint
The length of the stream.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“loop-end”
property“loop-end” guint
The loop end of stream.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“loop-start”
property“loop-start” guint
The loop start of stream.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“note”
property“note” gpointer
The assigned AgsNote providing default settings.
Flags: Read / Write
Since: 2.0.0
“output-soundcard”
property“output-soundcard” GObject *
The assigned output AgsSoundcard providing default settings.
Flags: Read / Write
Since: 2.0.0
“output-soundcard-channel”
property“output-soundcard-channel” gint
The output soundcard channel.
Flags: Read / Write
Allowed values: >= -1
Default value: 0
Since: 2.0.0
“recall-id”
property“recall-id” AgsRecallID *
The assigned AgsRecallID providing context.
Flags: Read / Write
Since: 2.0.0
“recycling”
property“recycling” AgsRecycling *
The assigned AgsRecycling linking tree.
Flags: Read / Write
Since: 2.0.0
“rt-template”
property“rt-template” AgsAudioSignal *
The assigned AgsAudioSignal realtime template.
Flags: Read / Write
Since: 2.0.0
“samplerate”
property“samplerate” guint
The samplerate to be used.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“stream-current”
property“stream-current” gpointer
The current stream.
Flags: Read
Since: 2.0.0
“template”
property“template” AgsAudioSignal *
The assigned AgsAudioSignal template.
Flags: Read / Write
Since: 2.0.0
“timbre-end”
property“timbre-end” guint
The timbre's end frame.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“timbre-start”
property“timbre-start” guint
The timbre's start frame.
Flags: Read / Write
Default value: 0
Since: 2.0.0
“vibration”
property“vibration” AgsComplex *
Vibration of timbre.
Flags: Read / Write
Since: 2.0.0
“word-size”
property“word-size” guint
The word size of frame.
Flags: Read
Default value: 0
Since: 2.0.0
“add-note”
signalvoid user_function (AgsAudioSignal *audio_signal, GObject *note, gpointer user_data)
The ::add-note signal notifies about adding note
.
audio_signal |
the AgsAudioSignal |
|
note |
the AgsNote |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0
“refresh-data”
signalvoid user_function (AgsAudioSignal *audio_signal, gpointer user_data)
The ::refresh-data signal notifies about requesting to refresh data.
audio_signal |
the AgsAudioSignal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0
“remove-note”
signalvoid user_function (AgsAudioSignal *audio_signal, GObject *note, gpointer user_data)
The ::remove-note signal notifies about removing note
.
audio_signal |
the AgsAudioSignal |
|
note |
the AgsNote |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.0.0