| Advanced Gtk+ Sequencer Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#include <ags/X/ags_machine.h> #define AGS_MACHINE_DEFAULT_BUILD_ID #define AGS_MACHINE_DEFAULT_VERSION struct AgsMachine; struct AgsMachineClass; enum AgsMachineFileInputFlags; enum AgsMachineFlags;void ags_machine_add_default_recalls ();GtkFileChooserDialog * ags_machine_file_chooser_dialog_new (AgsMachine *machine); AgsMachine * ags_machine_find_by_name (,GList *list);char *nameGList * ags_machine_find_port (AgsMachine *machine);GtkListStore * ags_machine_get_possible_links (AgsMachine *machine);void ags_machine_map_recall (AgsMachine *machine); AgsMachine * ags_machine_new ();GObject *devoutvoid ags_machine_open_files (AgsMachine *machine,,GSList *filenames,gboolean overwrite_channels);gboolean create_channelsvoid ags_machine_set_audio_channels (AgsAudio *audio,,guint audio_channels,guint audio_channels_oldAgsMachine *machine);void ags_machine_set_pads (AgsAudio *audio,,GType type,guint pads,guint pads_oldAgsMachine *machine);void ags_machine_set_run (AgsMachine *machine,);gboolean run
struct AgsMachine {
GtkHandleBox handle_box;
GObject *ags_main;
char *name;
gchar *version;
gchar *build_id;
guint flags;
guint file_input_flags;
AgsAudio *audio;
GtkToggleButton *play;
GType output_pad_type;
GType output_line_type;
GtkContainer *output;
GType input_pad_type;
GType input_line_type;
GtkContainer *input;
GList *port;
GtkMenu *popup;
GtkDialog *properties;
GtkDialog *rename;
};
struct AgsMachineClass {
GtkHandleBoxClass handle_box;
void (*map_recall)(AgsMachine *machine);
GList* (*find_port)(AgsMachine *machine);
};
typedef enum {
AGS_MACHINE_ACCEPT_WAV = 1,
AGS_MACHINE_ACCEPT_OGG = 1 << 1,
AGS_MACHINE_ACCEPT_SOUNDFONT2 = 1 << 2,
} AgsMachineFileInputFlags;
typedef enum {
AGS_MACHINE_SOLO = 1,
AGS_MACHINE_IS_EFFECT = 1 << 1,
AGS_MACHINE_IS_SEQUENCER = 1 << 2,
AGS_MACHINE_IS_SYNTHESIZER = 1 << 3,
AGS_MACHINE_TAKES_FILE_INPUT = 1 << 4,
AGS_MACHINE_MAPPED_RECALL = 1 << 5,
AGS_MACHINE_PREMAPPED_RECALL = 1 << 6,
AGS_MACHINE_BLOCK_PLAY = 1 << 7,
AGS_MACHINE_BLOCK_STOP = 1 << 8,
AGS_MACHINE_CONNECTED = 1 << 9,
} AgsMachineFlags;
GtkFileChooserDialog * ags_machine_file_chooser_dialog_new (AgsMachine *machine);
Creates a new machine file chooser dialog in order to open audio files.
|
the AgsMachine |
Since 0.4
AgsMachine * ags_machine_find_by_name (,GList *list);char *name
Find the specified by name machine.
|
a |
|
the name of machine |
Since 0.3
GList * ags_machine_find_port (AgsMachine *machine);
Lookup ports of associated recalls.
|
the AgsMachine
Returns: an |
Since 0.4
GtkListStore * ags_machine_get_possible_links (AgsMachine *machine);
Find links suitable for machine.
|
the AgsMachine |
Returns : |
a |
Since 0.4
void ags_machine_map_recall (AgsMachine *machine);
You may want the machine to add its default recall.
|
the AgsMachine to add its default recall. |
AgsMachine * ags_machine_new (GObject *devout);
Creates an AgsMachine
|
the assigned devout. |
Returns : |
a new AgsMachine |
Since 0.3
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.
|
the AgsMachine |
|
the filenames |
|
reset channels |
|
instantiate new channels |
Since 0.4
void ags_machine_set_audio_channels (AgsAudio *audio,,guint audio_channels,guint audio_channels_oldAgsMachine *machine);
void ags_machine_set_pads (AgsAudio *audio,,GType type,guint pads,guint pads_oldAgsMachine *machine);
void ags_machine_set_run (AgsMachine *machine,);gboolean run
Start/stop playback of machine.
|
the AgsMachine |
|
if TRUE |
Since 0.4