Top |
#define AGS_AUDIO_SIGNAL_GET_OBJ_MUTEX(obj) (&(((AgsAudioSignal *) obj)->obj_mutex))
#define AGS_AUDIO_SIGNAL_GET_STREAM_MUTEX(obj) (&(((AgsAudioSignal *) obj)->stream_mutex))
GRecMutex *
ags_audio_signal_get_obj_mutex (AgsAudioSignal *audio_signal
);
Get object mutex.
Since: 3.1.0
void
ags_audio_signal_stream_lock (AgsAudioSignal *audio_signal
);
Lock stream mutex.
Since: 3.1.0
void
ags_audio_signal_stream_unlock (AgsAudioSignal *audio_signal
);
Unlock stream mutex.
Since: 3.1.0
gboolean ags_audio_signal_test_flags (AgsAudioSignal *audio_signal
,guint flags
);
Test flags
to be set on audio_signal
.
Since: 3.0.0
void ags_audio_signal_set_flags (AgsAudioSignal *audio_signal
,guint flags
);
Enable a feature of audio_signal
.
Since: 3.0.0
void ags_audio_signal_unset_flags (AgsAudioSignal *audio_signal
,guint flags
);
Disable a feature of audio_signal
.
Since: 3.0.0
void * ags_stream_alloc (guint buffer_size
,guint format
);
Allocs an audio buffer.
Since: 3.0.0
void * ags_stream_slice_alloc (guint buffer_size
,guint format
);
Allocs an audio buffer.
Since: 3.3.0
void ags_stream_slice_free (guint buffer_size
,guint format
,void *buffer
);
Frees an audio buffer.
Since: 3.3.0
GObject *
ags_audio_signal_get_recycling (AgsAudioSignal *audio_signal
);
Get recycling.
Since: 3.1.0
void ags_audio_signal_set_recycling (AgsAudioSignal *audio_signal
,GObject *recycling
);
Set recycling.
Since: 3.1.0
GObject *
ags_audio_signal_get_output_soundcard (AgsAudioSignal *audio_signal
);
Get the output soundcard object of audio_signal
.
Since: 3.1.0
void ags_audio_signal_set_output_soundcard (AgsAudioSignal *audio_signal
,GObject *output_soundcard
);
Set the output soundcard object of audio_signal
.
Since: 3.0.0
GObject *
ags_audio_signal_get_input_soundcard (AgsAudioSignal *audio_signal
);
Get the input soundcard object of audio_signal
.
Since: 3.1.0
void ags_audio_signal_set_input_soundcard (AgsAudioSignal *audio_signal
,GObject *input_soundcard
);
Set the input soundcard object of audio_signal
.
Since: 3.0.0
guint
ags_audio_signal_get_samplerate (AgsAudioSignal *audio_signal
);
Gets samplerate.
Since: 3.1.0
void ags_audio_signal_set_samplerate (AgsAudioSignal *audio_signal
,guint samplerate
);
Set samplerate.
Since: 3.0.0
guint
ags_audio_signal_get_buffer_size (AgsAudioSignal *audio_signal
);
Gets buffer size.
Since: 3.1.0
void ags_audio_signal_set_buffer_size (AgsAudioSignal *audio_signal
,guint buffer_size
);
Set buffer size.
Since: 3.0.0
guint
ags_audio_signal_get_format (AgsAudioSignal *audio_signal
);
Gets format.
Since: 3.1.0
void ags_audio_signal_set_format (AgsAudioSignal *audio_signal
,guint format
);
Set format.
Since: 3.0.0
GList *
ags_audio_signal_get_note (AgsAudioSignal *audio_signal
);
Get note.
Since: 3.1.0
void ags_audio_signal_set_note (AgsAudioSignal *audio_signal
,GList *note
);
Set note by replacing existing.
audio_signal |
the AgsAudioSignal |
|
note |
the GList containing AgsNote. |
[element-type AgsAudio.Note][transfer full] |
Since: 3.1.0
void ags_audio_signal_add_note (AgsAudioSignal *audio_signal
,GObject *note
);
Add note to audio_signal
.
Since: 3.0.0
void ags_audio_signal_remove_note (AgsAudioSignal *audio_signal
,GObject *note
);
Remove note from audio_signal
.
Since: 3.0.0
GList *
ags_audio_signal_get_stream (AgsAudioSignal *audio_signal
);
Get stream.
Since: 3.8.11
void ags_audio_signal_set_stream (AgsAudioSignal *audio_signal
,GList *stream
);
Set stream by replacing existing.
audio_signal |
the AgsAudioSignal |
|
stream |
the GList containing audio data. |
[element-type guint8][transfer full] |
Since: 3.8.11
void
ags_audio_signal_add_stream (AgsAudioSignal *audio_signal
);
Adds a buffer at the end of the stream.
Since: 3.0.0
void ags_audio_signal_stream_resize (AgsAudioSignal *audio_signal
,guint length
);
Resize stream of audio_signal
to length
number of buffers.
Since: 3.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: 3.0.0
void
ags_audio_signal_clear (AgsAudioSignal *audio_signal
);
Clear audio_signal
.
Since: 3.4.1
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: 3.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: 3.0.0
void ags_audio_signal_feed_extended (AgsAudioSignal *audio_signal
,AgsAudioSignal *template
,guint frame_count
,guint old_frame_count
,gboolean do_open
,gboolean do_close
);
Feed audio signal to grow upto frame count.
audio_signal |
the AgsAudioSignal |
|
template |
the template AgsAudioSignal |
|
frame_count |
the new frame count |
|
old_frame_count |
the old frame count |
|
do_open |
open feed |
|
do_close |
close feed |
Since: 3.3.0
void ags_audio_signal_open_feed (AgsAudioSignal *audio_signal
,AgsAudioSignal *template
,guint frame_count
,guint old_frame_count
);
Feed audio signal to grow upto frame count.
audio_signal |
the AgsAudioSignal |
|
template |
the template AgsAudioSignal |
|
frame_count |
the new frame count |
|
old_frame_count |
the old frame count |
Since: 3.3.0
void ags_audio_signal_continue_feed (AgsAudioSignal *audio_signal
,AgsAudioSignal *template
,guint frame_count
,guint old_frame_count
);
Feed audio signal to grow upto frame count.
audio_signal |
the AgsAudioSignal |
|
template |
the template AgsAudioSignal |
|
frame_count |
the new frame count |
|
old_frame_count |
the old frame count |
Since: 3.3.0
void ags_audio_signal_close_feed (AgsAudioSignal *audio_signal
,AgsAudioSignal *template
,guint frame_count
,guint old_frame_count
);
Feed audio signal to grow upto frame count.
audio_signal |
the AgsAudioSignal |
|
template |
the template AgsAudioSignal |
|
frame_count |
the new frame count |
|
old_frame_count |
the old frame count |
Since: 3.3.0
guint
ags_audio_signal_get_length_till_current
(AgsAudioSignal *audio_signal
);
Counts the buffers from :stream upto :stream-current.
Since: 3.0.0
gboolean ags_audio_signal_contains_note (AgsAudioSignal *audio_signal
,AgsNote *note
);
Check if audio_signal
contains note
.
Since: 3.3.0
AgsAudioSignal *
ags_audio_signal_get_template (GList *audio_signal
);
Retrieve the template audio signal.
audio_signal |
the GList containing AgsAudioSignal. |
[element-type AgsAudio.AudioSignal][transfer none] |
Since: 3.0.0
GList *
ags_audio_signal_get_rt_template (GList *audio_signal
);
Retrieve the realtime template audio signal.
audio_signal |
a GList containing AgsAudioSignal. |
[element-type AgsAudio.AudioSignal][transfer none] |
the rt-templates as GList containing AgsAudioSignal.
[element-type AgsAudio.AudioSignal][transfer full]
Since: 3.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.
audio_signal |
the GList containing AgsAudioSignal. |
[element-type AgsAudio.AudioSignal][transfer none] |
recall_id |
the matching AgsRecallID |
Since: 3.0.0
GList * ags_audio_signal_find_by_recall_id (GList *audio_signal
,GObject *recall_id
);
Retrieve next audio signal refering to recall_id
audio_signal |
a GList containing AgsAudioSignal. |
[element-type AgsAudio.AudioSignal][transfer none] |
recall_id |
matching AgsRecallID |
matching GList containing AgsAudioSignal.
[element-type AgsAudio.AudioSignal][transfer none]
Since: 3.0.0
gboolean ags_audio_signal_is_active (GList *audio_signal
,GObject *recall_id
);
Check if is active.
audio_signal |
the GList containing AgsAudioSignal. |
[element-type AgsAudio.AudioSignal][transfer none] |
recall_id |
the AgsRecallID |
Since: 3.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: 3.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: 3.0.0
Enum values to control the behavior or indicate internal state of AgsAudioSignal by enable/disable as flags.
the audio signal was added to registry, see |
||
indicates the audio signal was connected by calling |
||
the audio signal acts as a template |
||
the audio signal acts as a realtime template |
||
the audio signal needs master |
||
the audio signal needs feed |
||
the audio signal is recycled |
||
the audio signal needs stream |
||
the audio signal allocates from slice |