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 () |
gchar * | 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 () |
gchar * | 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_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 |
gboolean
ags_midi_file_open (AgsMidiFile *midi_file
);
Opens a MIDI file read-only.
Since: 0.7.1
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: 0.7.1
gboolean
ags_midi_file_rw_open (AgsMidiFile *midi_file
);
Opens a MIDI file with read-write permission.
Since: 0.7.1
void
ags_midi_file_close (AgsMidiFile *midi_file
);
Closes the file stream.
Since: 0.7.1
gchar *
ags_midi_file_read (AgsMidiFile *midi_file
);
Reads all bytes of the file's stream and stores them in the internal buffer.
Since: 0.7.1
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: 0.7.1
void ags_midi_file_seek (AgsMidiFile *midi_file
,guint position
,gint whence
);
Seeks the file stream's offset.
Since: 0.7.1
void
ags_midi_file_flush (AgsMidiFile *midi_file
);
Flushes file stream's data buffer to disc.
Since: 0.7.1
gint16
ags_midi_file_read_gint16 (AgsMidiFile *midi_file
);
Reads a gint16 quantity.
Since: 0.7.1
gint32
ags_midi_file_read_gint24 (AgsMidiFile *midi_file
);
Reads a 24-bit quantity.
Since: 0.7.1
gint32
ags_midi_file_read_gint32 (AgsMidiFile *midi_file
);
Reads a gint32 quantity.
Since: 0.7.1
long
ags_midi_file_read_varlength (AgsMidiFile *midi_file
);
Reads a variable length quantity.
Since: 0.7.1
gchar * 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: 0.7.1
void ags_midi_file_write_gint16 (AgsMidiFile *midi_file
,gint16 val
);
Writes a gint16 quantity to internal buffer.
Since: 0.7.1
void ags_midi_file_write_gint24 (AgsMidiFile *midi_file
,gint32 val
);
Writes a 24-bit quantity to internal buffer.
Since: 0.7.1
void ags_midi_file_write_gint32 (AgsMidiFile *midi_file
,gint32 val
);
Writes a gint32 quantity to internal buffer.
Since: 0.7.1
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: 0.7.1
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: 0.7.1
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: 0.7.1
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
);