| Top |
| AgsAudio * | audio | Read |
| guint | buffer-size | Read / Write |
| guint | format | Read / Write |
| gchar * | machine-name | Read / Write |
| guint | samplerate | Read / Write |
| void | buffer-size-changed | Run Last |
| gpointer | find-port | Run Last |
| void | format-changed | Run Last |
| void | map-recall | Run Last |
| void | refresh-port | Run Last |
| void | resize-audio-channels | Run Last |
| void | resize-pads | Run Last |
| void | samplerate-changed | Run Last |
| void | stop | Run Last |
| #define | AGS_MACHINE_DEFAULT_VERSION |
| #define | AGS_MACHINE_DEFAULT_BUILD_ID |
| enum | AgsMachineFlags |
| enum | AgsMachineFileInputFlags |
| enum | AgsMachineMappingFlags |
| enum | AgsMachineEditOptions |
| enum | AgsMachineConnectionOptions |
| enum | AgsMachineExportOptions |
| enum | AgsMachineImportOptions |
| struct | AgsMachineInputLine |
| struct | AgsMachineAutomationPort |
| #define | AGS_TYPE_MACHINE |
| struct | AgsMachine |
| struct | AgsMachineClass |
GObject
╰── GInitiallyUnowned
╰── GtkWidget
╰── GtkGrid
╰── AgsMachine
├── AgsAudiorec
├── AgsDesk
├── AgsDrum
├── AgsDssiBridge
├── AgsEqualizer10
├── AgsFFPlayer
├── AgsFMSyncsynth
├── AgsFMSynth
├── AgsHybridFMSynth
├── AgsHybridSynth
├── AgsLadspaBridge
├── AgsLiveDssiBridge
├── AgsLiveLv2Bridge
├── AgsLv2Bridge
├── AgsMatrix
├── AgsMixer
├── AgsPanel
├── AgsPitchSampler
├── AgsSF2Synth
├── AgsSFZSynth
├── AgsSpectrometer
├── AgsSyncsynth
╰── AgsSynth
AgsMachine implements GtkAccessible, GtkBuildable, GtkConstraintTarget, GtkOrientable and AgsConnectable.
#define AGS_MACHINE_AUTOMATION_PORT(ptr) ((AgsMachineAutomationPort *)(ptr))
gint ags_machine_input_line_sort_func (gconstpointer a,gconstpointer b);
Sort machine input line.
Since: 3.16.0
AgsMachineInputLine * ags_machine_input_line_alloc ();
Allocate AgsMachineInputLine.
Since: 3.16.0
gchar *
ags_machine_get_machine_name (AgsMachine *machine);
Get machine name of machine
.
Since: 4.0.0
void ags_machine_set_machine_name (AgsMachine *machine,gchar *machine_name);
void
ags_machine_reset_pattern_envelope (AgsMachine *machine);
Reset pattern envelope from preset.
Since: 3.6.20
AgsMachineAutomationPort * ags_machine_automation_port_alloc (GType channel_type,gchar *control_name);
Allocate AgsMachineAutomationPort
Since: 3.0.0
void
ags_machine_automation_port_free (AgsMachineAutomationPort *automation_port);
Free automation_port
Since: 3.0.0
GList * ags_machine_automation_port_find_channel_type_with_control_name (GList *list,GType channel_type,gchar *control_name);
Find AgsAutomationPort by specifying channel type and control name.
list |
a GList containing AgsAutomationPort |
|
channel_type |
the GType to match |
|
control_name |
the control name as string to match |
Since: 3.0.0
GList *
ags_machine_get_output_pad (AgsMachine *machine);
Get line member of machine
.
Since: 4.0.0
void ags_machine_add_output_pad (AgsMachine *machine,AgsPad *output_pad,guint x,guint y,guint width,guint height);
Add output_pad
to machine
.
machine |
the AgsMachine |
|
output_pad |
the AgsPad |
|
x |
the x position |
|
y |
the y position |
|
width |
the width |
|
height |
the height |
Since: 4.0.0
void ags_machine_remove_output_pad (AgsMachine *machine,AgsPad *output_pad);
Remove output_pad
from machine
.
Since: 4.0.0
GList *
ags_machine_get_input_pad (AgsMachine *machine);
Get line member of machine
.
Since: 4.0.0
void ags_machine_add_input_pad (AgsMachine *machine,AgsPad *input_pad,guint x,guint y,guint width,guint height);
Add input_pad
to machine
.
machine |
the AgsMachine |
|
input_pad |
the AgsPad |
|
x |
the x position |
|
y |
the y position |
|
width |
the width |
|
height |
the height |
Since: 4.0.0
void ags_machine_remove_input_pad (AgsMachine *machine,AgsPad *input_pad);
Remove input_pad
from machine
.
Since: 4.0.0
void ags_machine_samplerate_changed (AgsMachine *machine,guint samplerate,guint old_samplerate);
Notify about samplerate changed.
Since: 3.0.0
void ags_machine_buffer_size_changed (AgsMachine *machine,guint buffer_size,guint old_buffer_size);
Notify about buffer_size changed.
Since: 3.0.0
void ags_machine_format_changed (AgsMachine *machine,guint format,guint old_format);
Notify about format changed.
Since: 3.0.0
void ags_machine_resize_audio_channels (AgsMachine *machine,guint new_size,guint old_size);
Resize audio channel allocation.
Since: 3.0.0
void ags_machine_resize_pads (AgsMachine *machine,GType channel_type,guint new_size,guint old_size);
Resize pad allocation.
machine |
the AgsMachine |
|
channel_type |
the channel GType |
|
new_size |
new allocation |
|
old_size |
old allocation |
Since: 3.0.0
void
ags_machine_map_recall (AgsMachine *machine);
You may want the machine
to add its default recall.
Since: 3.0.0
void ags_machine_stop (AgsMachine *machine,GList *recall_id,gint sound_scope);
Notify about to stop playback of recall_id
.
machine |
the AgsMachine |
|
recall_id |
the GList containing AgsRecallID |
|
sound_scope |
the sound scope |
Since: 3.0.0
void
ags_machine_add_default_recalls (AgsMachine *machine);
ags_machine_add_default_recalls is deprecated and should not be used in newly-written code.
AgsMachine * ags_machine_find_by_name (GList *list,char *name);
Find the specified by name
machine.
Since: 3.0.0
void ags_machine_playback_set_active (AgsMachine *machine,AgsPlayback *playback,gboolean is_active);
Start/stop playback
of machine
.
machine |
the AgsMachine |
|
playback |
the AgsPlayback |
|
is_active |
if |
Since: 3.0.0
void ags_machine_set_run (AgsMachine *machine,gboolean run);
Start/stop playback of machine
.
Since: 3.0.0
void ags_machine_set_run_extended (AgsMachine *machine,gboolean run,gboolean sequencer,gboolean notation,gboolean wave,gboolean midi);
Start/stop playback of machine
.
machine |
the AgsMachine |
|
run |
if |
|
sequencer |
if doing sequencer |
|
notation |
if doing notation |
|
wave |
if doing wave |
|
midi |
if doing midi |
Since: 3.0.0
GList *
ags_machine_get_dialog_model (AgsMachine *machine);
Get dialog model.
Since: 4.0.0
void ags_machine_add_dialog_model (AgsMachine *machine,xmlNode *node);
Add node
to machine
.
Since: 4.0.0
void ags_machine_remove_dialog_model (AgsMachine *machine,xmlNode *node);
Get node
from machine
.
Since: 4.0.0
GList * ags_machine_find_dialog_model (AgsMachine *machine,GList *dialog_model,gchar *node_name,gchar *attribute,gchar *value);
Find dialog model.
machine |
the AgsMachine |
|
dialog_model |
the GList |
|
node_name |
the node name |
|
attribute |
the attribute |
|
value |
the attribute value |
Since: 4.0.0
GtkListStore *
ags_machine_get_possible_links (AgsMachine *machine);
Find links suitable for machine
.
a GtkListStore containing one column with a string representing machines by its type and name.
Since: 3.0.0
GtkListStore *
ags_machine_get_possible_audio_output_connections
(AgsMachine *machine);
Find audio output connections suitable for machine
.
a GtkListStore containing one column with a string representing machines by its type and name.
Since: 3.0.0
GtkListStore *
ags_machine_get_possible_audio_input_connections
(AgsMachine *machine);
Find audio input connections suitable for machine
.
a GtkListStore containing one column with a string representing machines by its type and name.
Since: 3.0.0
void ags_machine_open_files (AgsMachine *machine,GSList *filenames,gboolean overwrite_channels,gboolean create_channels);
Opens audio files and modifies or creates new channels if wished.
machine |
the AgsMachine |
|
filenames |
the filenames |
|
overwrite_channels |
reset channels |
|
create_channels |
instantiate new channels |
Since: 3.0.0
void
ags_machine_check_message (AgsMachine *machine);
Check message queue for message envelopes.
Since: 3.0.0
AgsMachine *
ags_machine_new (GObject *soundcard);
Creates an AgsMachine
Since: 3.0.0
#define AGS_IS_MACHINE_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE((class), AGS_TYPE_MACHINE))
#define AGS_MACHINE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MACHINE, AgsMachine))
#define AGS_MACHINE_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MACHINE, AgsMachineClass))
#define AGS_MACHINE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), AGS_TYPE_MACHINE, AgsMachineClass))
struct AgsMachineInputLine {
guint pad;
guint audio_channel;
guint line;
gboolean mapped_recall;
};
struct AgsMachineAutomationPort {
GType channel_type;
gchar *control_name;
};
struct AgsMachineClass {
GtkGridClass grid;
void (*samplerate_changed)(AgsMachine *machine,
guint samplerate, guint old_samplerate);
void (*buffer_size_changed)(AgsMachine *machine,
guint buffer_size, guint old_buffer_size);
void (*format_changed)(AgsMachine *machine,
guint format, guint old_format);
void (*resize_audio_channels)(AgsMachine *machine,
guint new_size, guint old_size);
void (*resize_pads)(AgsMachine *machine,
GType channel_type,
guint new_size, guint old_size);
void (*map_recall)(AgsMachine *machine);
GList* (*find_port)(AgsMachine *machine);
void (*stop)(AgsMachine *machine,
GList *recall_id, gint sound_scope);
void (*refresh_port)(AgsMachine *machine);
};
“audio” property“audio” AgsAudio *
The assigned AgsAudio to visualize.
Owner: AgsMachine
Flags: Read
Since: 3.0.0
“buffer-size” property “buffer-size” guint
The buffer length.
Owner: AgsMachine
Flags: Read / Write
Default value: 1024
Since: 3.0.0
“format” property “format” guint
The format.
Owner: AgsMachine
Flags: Read / Write
Default value: 16
Since: 3.0.0
“machine-name” property “machine-name” gchar *
The machine's name.
Owner: AgsMachine
Flags: Read / Write
Default value: NULL
Since: 3.0.0
“buffer-size-changed” signalvoid user_function (AgsMachine *machine, guint buffer_size, guint old_buffer_size, gpointer user_data)
The ::buffer-size-changed signal notifies about changed buffer size.
machine |
the AgsMachine |
|
buffer_size |
the buffer size |
|
old_buffer_size |
the old buffer size |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“find-port” signalgpointer user_function (AgsMachine *machine, gpointer user_data)
machine |
the AgsMachine to resize |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“format-changed” signalvoid user_function (AgsMachine *machine, guint format, guint old_format, gpointer user_data)
The ::format-changed signal notifies about changed format.
machine |
the AgsMachine |
|
format |
the format |
|
old_format |
the old format |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“map-recall” signalvoid user_function (AgsMachine *machine, gpointer user_data)
The ::map-recall should be used to add the machine's default recall.
Flags: Run Last
Since: 3.0.0
“refresh-port” signalvoid user_function (AgsMachine *machine, gpointer user_data)
The ::refresh-port signal.
Flags: Run Last
Since: 4.2.1
“resize-audio-channels” signalvoid user_function (AgsMachine *machine, guint new_size, guint old_size, gpointer user_data)
The ::resize-audio-channels signal notifies about changed channel allocation within audio.
machine |
the AgsMachine to modify |
|
new_size |
the new size |
|
old_size |
the old size |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“resize-pads” signalvoid user_function (AgsMachine *machine, gpointer channel_type, guint new_size, guint old_size, gpointer user_data)
The ::resize-pads signal notifies about changed channel allocation within audio.
machine |
the AgsMachine to modify |
|
channel_type |
either |
|
new_size |
the new size |
|
old_size |
the old size |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“samplerate-changed” signalvoid user_function (AgsMachine *machine, guint samplerate, guint old_samplerate, gpointer user_data)
The ::samplerate-changed signal notifies about changed samplerate.
machine |
the AgsMachine |
|
samplerate |
the samplerate |
|
old_samplerate |
the old samplerate |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0
“stop” signalvoid user_function (AgsMachine *machine, gpointer recall_id, gint sound_scope, gpointer user_data)
The ::stop signal gets emited as audio stops playback.
machine |
the AgsMachine |
|
recall_id |
the GList containing AgsRecallID |
|
sound_scope |
the sound scope |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.0.0