| Top |
| #define | AGS_MIDI_FILE_TRACK() |
| gboolean | ags_midi_file_open () |
| gboolean | ags_midi_file_open_from_data () |
| gboolean | ags_midi_file_rw_open () |
| void | ags_midi_file_close () |
| unsigned char * | ags_midi_file_read () |
| void | ags_midi_file_write () |
| void | ags_midi_file_seek () |
| void | ags_midi_file_flush () |
| gint16 | ags_midi_file_read_gint16 () |
| gint32 | ags_midi_file_read_gint24 () |
| gint32 | ags_midi_file_read_gint32 () |
| long | ags_midi_file_read_varlength () |
| unsigned char * | ags_midi_file_read_text () |
| void | ags_midi_file_write_gint16 () |
| void | ags_midi_file_write_gint24 () |
| void | ags_midi_file_write_gint32 () |
| void | ags_midi_file_write_varlength () |
| void | ags_midi_file_write_text () |
| unsigned char * | ags_midi_file_read_header () |
| void | ags_midi_file_write_header () |
| unsigned char * | ags_midi_file_read_track_data () |
| void | ags_midi_file_write_track_data () |
| AgsMidiFile * | ags_midi_file_new () |
| #define | AGS_IS_MIDI_FILE() |
| #define | AGS_MIDI_FILE() |
| #define | AGS_MIDI_FILE_CLASS() |
| #define | AGS_MIDI_FILE_GET_CLASS() |
| GType | ags_midi_file_get_type () |
| #define | AGS_MIDI_FILE_MAX_TEXT_LENGTH |
| #define | AGS_MIDI_FILE_MTHD |
| #define | AGS_MIDI_FILE_MTRK |
| #define | AGS_MIDI_FILE_DEFAULT_OFFSET |
| #define | AGS_MIDI_FILE_DEFAULT_FORMAT |
| #define | AGS_MIDI_FILE_DEFAULT_BEATS |
| #define | AGS_MIDI_FILE_DEFAULT_FPS |
| #define | AGS_MIDI_FILE_DEFAULT_TICKS |
| enum | AgsMidiFileStatus |
| enum | AgsMidiFileFlags |
| struct | AgsMidiFileTrack |
| #define | AGS_TYPE_MIDI_FILE |
| struct | AgsMidiFile |
| struct | AgsMidiFileClass |
gboolean
ags_midi_file_open (AgsMidiFile *midi_file);
Opens a MIDI file read-only.
Since: 1.0.0
gboolean ags_midi_file_open_from_data (AgsMidiFile *midi_file,unsigned char *data,guint buffer_length);
Opens a virtual MIDI file residing in data
's array.
Since: 1.0.0
gboolean
ags_midi_file_rw_open (AgsMidiFile *midi_file);
Opens a MIDI file with read-write permission.
Since: 1.0.0
void
ags_midi_file_close (AgsMidiFile *midi_file);
Closes the file stream.
Since: 1.0.0
unsigned char *
ags_midi_file_read (AgsMidiFile *midi_file);
Reads all bytes of the file's stream and stores them in the internal buffer.
Since: 1.0.0
void ags_midi_file_write (AgsMidiFile *midi_file,unsigned char *data,guint buffer_length);
Writes data
to the file stream and to internal buffer, reallocates it if necessary.
Since: 1.0.0
void ags_midi_file_seek (AgsMidiFile *midi_file,guint position,gint whence);
Seeks the file stream's offset.
Since: 1.0.0
void
ags_midi_file_flush (AgsMidiFile *midi_file);
Flushes file stream's data buffer to disc.
Since: 1.0.0
gint16
ags_midi_file_read_gint16 (AgsMidiFile *midi_file);
Reads a gint16 quantity.
Since: 1.0.0
gint32
ags_midi_file_read_gint24 (AgsMidiFile *midi_file);
Reads a 24-bit quantity.
Since: 1.0.0
gint32
ags_midi_file_read_gint32 (AgsMidiFile *midi_file);
Reads a gint32 quantity.
Since: 1.0.0
long
ags_midi_file_read_varlength (AgsMidiFile *midi_file);
Reads a variable length quantity.
Since: 1.0.0
unsigned char * ags_midi_file_read_text (AgsMidiFile *midi_file,gint length);
Reads a string.
midi_file |
the AgsMidiFile |
|
length |
the number of bytes to be read, or as long valid string for -1 |
Since: 1.0.0
void ags_midi_file_write_gint16 (AgsMidiFile *midi_file,gint16 val);
Writes a gint16 quantity to internal buffer.
Since: 1.0.0
void ags_midi_file_write_gint24 (AgsMidiFile *midi_file,gint32 val);
Writes a 24-bit quantity to internal buffer.
Since: 1.0.0
void ags_midi_file_write_gint32 (AgsMidiFile *midi_file,gint32 val);
Writes a gint32 quantity to internal buffer.
Since: 1.0.0
void ags_midi_file_write_varlength (AgsMidiFile *midi_file,long val Param2);
void ags_midi_file_write_text (AgsMidiFile *midi_file,gchar *text,guint length);
Writes a string to internal buffer up to length bytes.
Since: 1.0.0
unsigned char * ags_midi_file_read_header (AgsMidiFile *midi_file,guint *buffer_length);
Reads the MIDI file's header and positions internal buffer pointer just behind it.
Since: 1.0.0
void ags_midi_file_write_header (AgsMidiFile *midi_file,unsigned char *buffer,guint buffer_length);
Write header bytes.
midi_file |
the AgsMidiFile |
|
buffer |
the buffer to write |
|
buffer_length |
the length of the buffer |
Since: 1.0.0
unsigned char * ags_midi_file_read_track_data (AgsMidiFile *midi_file,guint *buffer_length);
void ags_midi_file_write_track_data (AgsMidiFile *midi_file,unsigned char *buffer,guint buffer_length);
#define AGS_IS_MIDI_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_MIDI_FILE))
#define AGS_MIDI_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_MIDI_FILE, AgsMidiFile))
#define AGS_MIDI_FILE_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_MIDI_FILE, AgsMidiFileClass))
#define AGS_MIDI_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_MIDI_FILE, AgsMidiFileClass))