Feature: Console command to dump decoded music to .mid file

This commit is contained in:
Niels Martin Hansen
2018-03-15 22:14:59 +01:00
committed by Michael Lutz
parent 921101ed06
commit e2fa4b71c6
2 changed files with 225 additions and 0 deletions

View File

@@ -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);
};