Feature: Console command to dump decoded music to .mid file
This commit is contained in:
committed by
Michael Lutz
parent
921101ed06
commit
e2fa4b71c6
@@ -36,11 +36,16 @@ struct MidiFile {
|
||||
std::vector<TempoChange> tempos; ///< list of tempo changes in file
|
||||
uint16 tickdiv; ///< ticks per quarter note
|
||||
|
||||
MidiFile();
|
||||
~MidiFile();
|
||||
|
||||
bool LoadFile(const char *filename);
|
||||
bool LoadMpsData(const byte *data, size_t length);
|
||||
bool LoadSong(const MusicSongInfo &song);
|
||||
void MoveFrom(MidiFile &other);
|
||||
|
||||
bool WriteSMF(const char *filename);
|
||||
|
||||
static bool ReadSMFHeader(const char *filename, SMFHeader &header);
|
||||
static bool ReadSMFHeader(FILE *file, SMFHeader &header);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user