summaryrefslogtreecommitdiff
path: root/src/music/midifile.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/music/midifile.hpp')
-rw-r--r--src/music/midifile.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/music/midifile.hpp b/src/music/midifile.hpp
index e41435364..7c567d45c 100644
--- a/src/music/midifile.hpp
+++ b/src/music/midifile.hpp
@@ -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);
};