Top | ![]() |
![]() |
![]() |
![]() |
guint | audio-channels | Read / Write |
GObject * | audio-connection | Read / Write |
guint | audio-end-mapping | Read / Write |
guint | audio-start-mapping | Read / Write |
AgsAutomation * | automation | Read / Write |
guint | buffer-size | Read / Write |
guint | format | Read / Write |
AgsInput * | input | Read |
guint | input-lines | Read |
guint | input-pads | Read / Write |
guint | midi-channel | Read / Write |
guint | midi-end-mapping | Read / Write |
GObject * | midi-file | Read / Write |
guint | midi-start-mapping | Read / Write |
AgsNotation * | notation | Read / Write |
AgsOutput * | output | Read |
guint | output-lines | Read |
guint | output-pads | Read / Write |
AgsRecall * | play | Read / Write |
AgsPlaybackDomain * | playback-domain | Read / Write |
AgsRecall * | recall | Read / Write |
AgsRecallContainer * | recall-container | Read / Write |
AgsRecallID * | recall-id | Read / Write |
AgsRecyclingContext * | recycling-context | Read / Write |
guint | samplerate | Read / Write |
guint | sequence-length | Read / Write |
GObject * | sequencer | Read / Write |
GObject * | soundcard | Read / Write |
AgsAudio organizes AgsChannel objects either as input or output and is responsible of their alignment. The class can contain AgsRecall objects in order to perform computation on all channels or in audio context. Therefor exists AgsRecyclingContext acting as tree context.
At least one AgsRecallID is assigned to it and has one more if
AGS_AUDIO_OUTPUT_HAS_RECYCLING
is set as flag.
If AGS_AUDIO_HAS_NOTATION
is set as flag one AgsNotation is allocated per audio
channel.
void ags_audio_set_soundcard (AgsAudio *audio
,GObject *soundcard
);
Sets a soundcard object on audio.
Since: 0.4
void ags_audio_set_flags (AgsAudio *audio
,guint flags
);
Enable a feature of AgsAudio.
Since: 0.4
void ags_audio_unset_flags (AgsAudio *audio
,guint flags
);
Disable a feature of AgsAudio.
Since: 0.4
void ags_audio_set_audio_channels (AgsAudio *audio
,guint audio_channels
);
Resize audio channels AgsInput will be allocated first.
Since: 0.3
void ags_audio_set_pads (AgsAudio *audio
,GType type
,guint pads
);
Sets pad count for the apropriate type
Since: 0.3
void ags_audio_set_samplerate (AgsAudio *audio
,guint samplerate
);
Sets buffer length.
Since: 0.7.45
void ags_audio_set_buffer_size (AgsAudio *audio
,guint buffer_size
);
Sets buffer length.
Since: 0.7.45
void ags_audio_set_format (AgsAudio *audio
,guint format
);
Sets buffer length.
Since: 0.7.45
void ags_audio_set_sequence_length (AgsAudio *audio
,guint sequence_length
);
Sets sequence length.
Since: 0.4
void ags_audio_add_audio_connection (AgsAudio *audio
,GObject *audio_connection
);
Adds an audio connection.
Since: 0.7.65
void ags_audio_remove_audio_connection (AgsAudio *audio
,GObject *audio_connection
);
Removes an audio connection.
Since: 0.7.65
void ags_audio_add_notation (AgsAudio *audio
,GObject *notation
);
Adds a recall id.
Since: 0.4
void ags_audio_remove_notation (AgsAudio *audio
,GObject *notation
);
Removes a recall id.
Since: 0.4
void ags_audio_add_automation (AgsAudio *audio
,GObject *automation
);
Adds a recall id.
Since: 0.7.0
void ags_audio_remove_automation (AgsAudio *audio
,GObject *automation
);
Removes a recall id.
Since: 0.7.0
void ags_audio_add_recall_id (AgsAudio *audio
,GObject *recall_id
);
Adds a recall id.
Since: 0.4
void ags_audio_remove_recall_id (AgsAudio *audio
,GObject *recall_id
);
Removes a recall id.
Since: 0.4
void ags_audio_add_recycling_context (AgsAudio *audio
,GObject *recycling_context
);
Adds a recycling container.
Since: 0.4
void ags_audio_remove_recycling_context (AgsAudio *audio
,GObject *recycling_context
);
Removes a recycling container.
Since: 0.4
void ags_audio_add_recall_container (AgsAudio *audio
,GObject *recall_container
);
Adds a recall container.
Since: 0.4
void ags_audio_remove_recall_container (AgsAudio *audio
,GObject *recall_container
);
Removes a recall container.
Since: 0.4
void ags_audio_add_recall (AgsAudio *audio
,GObject *recall
,gboolean play
);
Adds a recall.
Since: 0.4
void ags_audio_remove_recall (AgsAudio *audio
,GObject *recall
,gboolean play
);
Removes a recall.
Since: 0.4
void ags_audio_recall_change_state (AgsAudio *audio
,gboolean enable
);
AgsRecallID *
ags_audio_init_run (AgsAudio *audio
);
Is emitted as audio is initialized.
Since: 0.4
void ags_audio_duplicate_recall (AgsAudio *audio
,AgsRecallID *recall_id
);
Duplicate all AgsRecall templates of this AgsAudio.
Since: 0.4
void ags_audio_init_recall (AgsAudio *audio
,gint stage
,AgsRecallID *recall_id
);
Initializes the recalls of audio
audio |
the AgsAudio |
|
stage |
stage benning at 0 up to 2, or just -1 |
|
recall_id |
the AgsRecallID to use or NULL |
Since: 0.4
void ags_audio_resolve_recall (AgsAudio *audio
,AgsRecallID *recall_id
);
Performs resolving of recalls.
Since: 0.4
gboolean
ags_audio_is_playing (AgsAudio *audio
);
Determine if AgsAudio is playing.
Since: 0.4
void ags_audio_play (AgsAudio *audio
,AgsRecallID *recall_id
,gint stage
);
Performs on single play call of appropriate stage.
audio |
the AgsAudio |
|
recall_id |
the AgsRecallID to apply to |
|
stage |
valid range is from 0 up to 2 |
Since: 0.4
void ags_audio_tact (AgsAudio *audio
,AgsRecallID *recall_id
);
Is emitted as audio is played.
Since: 0.4
void ags_audio_done (AgsAudio *audio
,AgsRecallID *recall_id
);
Is emitted as playing audio is done.
Since: 0.4
void ags_audio_cancel (AgsAudio *audio
,AgsRecallID *recall_id
);
Cancel processing audio data.
Since: 0.4
void ags_audio_remove (AgsAudio *audio
,AgsRecallID *recall_id
);
Remove processing audio data.
Since: 0.4
GList *
ags_audio_find_port (AgsAudio *audio
);
Retrieve all ports of AgsAudio.
Since: 0.4
void ags_audio_open_files (AgsAudio *audio
,GSList *filenames
,gboolean overwrite_channels
,gboolean create_channels
);
Open some files.
audio |
the AgsAudio |
|
filenames |
the files to open |
|
overwrite_channels |
if existing channels should be assigned |
|
create_channels |
if new channels should be created as not fitting if combined with |
Since: 0.4
void ags_audio_recursive_set_property (AgsAudio *audio
,GParameter *parameter
,gint n_params
);
Recursive set property for AgsAudio.
audio |
the AgsAudio |
|
parameter |
the GParameter array containing properties |
|
n_params |
the length of |
Since: 0.7.65
GList * ags_audio_recursive_play_init (AgsAudio *audio
,gboolean playback
,gboolean sequencer
,gboolean notation
);
Initializes AgsAudio in order to do playback, sequencer or notation.
audio |
the AgsAudio object |
|
playback |
if doing playback |
|
sequencer |
if doing sequencer |
|
notation |
if doing notation |
Since: 0.4
AgsAudio *
ags_audio_new (GObject *soundcard
);
Creates an AgsAudio, with defaults of soundcard
.
Since: 0.3
#define AGS_AUDIO_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_AUDIO, AgsAudioClass))
#define AGS_AUDIO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_AUDIO, AgsAudioClass))
#define AGS_IS_AUDIO_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_AUDIO))
struct AgsAudioClass { GObjectClass object; void (*check_connection)(AgsAudio *audio); void (*set_audio_channels)(AgsAudio *audio, guint audio_channels, guint audio_channels_old); void (*set_pads)(AgsAudio *audio, GType type, guint pads, guint pads_old); AgsRecallID* (*init_run)(AgsAudio *audio); void (*tact)(AgsAudio *audio, AgsRecallID *recall_id); void (*done)(AgsAudio *audio, AgsRecallID *recall_id); };
“audio-channels”
property“audio-channels” guint
The audio channels count.
Flags: Read / Write
Allowed values: <= 65535
Default value: 0
Since: 0.7.2
“audio-connection”
property“audio-connection” GObject *
The assigned GList containing AgsAudioConnection information.
Flags: Read / Write
Since: 0.7.65
“audio-end-mapping”
property“audio-end-mapping” guint
The audio end mapping.
Flags: Read / Write
Default value: 0
Since: 0.7.3
“audio-start-mapping”
property“audio-start-mapping” guint
The audio start mapping.
Flags: Read / Write
Default value: 0
Since: 0.7.3
“automation”
property“automation” AgsAutomation *
The AgsAutomation it contains.
Flags: Read / Write
Since: 0.7.2
“buffer-size”
property“buffer-size” guint
The buffer size.
Flags: Read / Write
Default value: 0
Since: 0.7.45
“input-lines”
property“input-lines” guint
The input lines count.
Flags: Read
Allowed values: <= 65535
Default value: 0
Since: 0.7.2
“input-pads”
property“input-pads” guint
The input pads count.
Flags: Read / Write
Allowed values: <= 65535
Default value: 0
Since: 0.7.2
“midi-channel”
property“midi-channel” guint
The midi channel.
Flags: Read / Write
Allowed values: <= 16
Default value: 0
Since: 0.7.117
“midi-end-mapping”
property“midi-end-mapping” guint
The midi end mapping.
Flags: Read / Write
Default value: 0
Since: 0.7.3
“midi-file”
property“midi-file” GObject *
The assigned AgsMidiFile acting as default sink.
Flags: Read / Write
Since: 0.4
“midi-start-mapping”
property“midi-start-mapping” guint
The midi start mapping.
Flags: Read / Write
Default value: 0
Since: 0.7.3
“notation”
property“notation” AgsNotation *
The AgsNotation it contains.
Flags: Read / Write
Since: 0.7.2
“output-lines”
property“output-lines” guint
The output lines count.
Flags: Read
Allowed values: <= 65535
Default value: 0
Since: 0.7.2
“output-pads”
property“output-pads” guint
The output pads count.
Flags: Read / Write
Allowed values: <= 65535
Default value: 0
Since: 0.7.2
“play”
property“play” AgsRecall *
The AgsRecall it contains in play-context.
Flags: Read / Write
Since: 0.7.2
“playback-domain”
property“playback-domain” AgsPlaybackDomain *
The assigned AgsPlaybackDomain.
Flags: Read / Write
Since: 0.7.2
“recall”
property“recall” AgsRecall *
The AgsRecall it contains in recall-context.
Flags: Read / Write
Since: 0.7.2
“recall-container”
property“recall-container” AgsRecallContainer *
The AgsRecallContainer it contains in container-context.
Flags: Read / Write
Since: 0.7.2
“recall-id”
property“recall-id” AgsRecallID *
The assigned AgsRecallID.
Flags: Read / Write
Since: 0.7.2
“recycling-context”
property“recycling-context” AgsRecyclingContext *
The assigned AgsRecyclingContext.
Flags: Read / Write
Since: 0.7.2
“samplerate”
property“samplerate” guint
The samplerate.
Flags: Read / Write
Default value: 0
Since: 0.7.45
“sequence-length”
property“sequence-length” guint
The sequence length.
Flags: Read / Write
Default value: 0
Since: 0.7.2
“sequencer”
property“sequencer” GObject *
The assigned AgsSequencer acting as default sink.
Flags: Read / Write
Since: 0.4
“soundcard”
property“soundcard” GObject *
The assigned AgsSoundcard acting as default sink.
Flags: Read / Write
Since: 0.4
“check-connection”
signalvoid user_function (AgsAudio *audio, gpointer user_data)
The ::check-connection checks your audio connections.
audio |
the object to init run. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 0.7.65
“done”
signalvoid user_function (AgsAudio *audio, GObject *recall_id, gpointer user_data)
The ::done signal is invoked while terminating playback
of audio
.
audio |
the object done playing. |
|
recall_id |
the appropriate AgsRecallID |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“init-run”
signalGObject* user_function (AgsAudio *audio, gpointer user_data)
The ::init-run signal is invoked during dynamic initialization of recalls
of audio
.
audio |
the object to init run. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“set-audio-channels”
signalvoid user_function (AgsAudio *audio, guint audio_channels_new, guint audio_channels_old, gpointer user_data)
The ::set-audio-channels signal notifies about changes in channel alignment.
audio |
the object to adjust the channels. |
|
audio_channels_new |
new audio channel count |
|
audio_channels_old |
old audio channel count |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“set-pads”
signalvoid user_function (AgsAudio *audio, gulong type, guint pads_new, guint pads_old, gpointer user_data)
The ::set-pads signal notifies about changes in channel alignment.
audio |
the object to adjust pads. |
|
type |
either AGS_TYPE_INPUT or AGS_TYPE_OUTPUT |
|
pads_new |
new pad count |
|
pads_old |
old pad count |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“tact”
signalvoid user_function (AgsAudio *audio, GObject *recall_id, gpointer user_data)
The ::tact signal is invoked during playback of recalls
of audio
.
audio |
the object playing. |
|
recall_id |
the appropriate AgsRecallID |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last