Skip to content

Commit c2a33b3

Browse files
committed
Syncronized MIDI sequencer with libADLMIDI
1 parent c523a27 commit c2a33b3

File tree

2 files changed

+583
-7
lines changed

2 files changed

+583
-7
lines changed

src/midi_sequencer.hpp

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,9 @@ class BW_MidiSequencer
322322
//! EA-MUS format
323323
Format_RSXX,
324324
//! AIL's XMIDI format (act same as MIDI, but with exceptions)
325-
Format_XMIDI
325+
Format_XMIDI,
326+
//! KLM format
327+
Format_KLM
326328
};
327329

328330
/**
@@ -802,13 +804,21 @@ class BW_MidiSequencer
802804
void setTempo(double tempo);
803805

804806
private:
807+
#ifdef BWMIDI_ENABLE_OPL_MUSIC_SUPPORT
805808
/**
806809
* @brief Load file as Id-software-Music-File (Wolfenstein)
807810
* @param fr Context with opened file
808811
* @return true on successful load
809812
*/
810813
bool parseIMF(FileAndMemReader &fr);
811814

815+
/**
816+
* @brief Load file as Wacky Wheels KLM file
817+
* @param fr Context with opened file
818+
* @return true on successful load
819+
*/
820+
bool parseKLM(FileAndMemReader &fr);
821+
812822
/**
813823
* @brief Load file as EA MUS
814824
* @param fr Context with opened file
@@ -822,6 +832,7 @@ class BW_MidiSequencer
822832
* @return true on successful load
823833
*/
824834
bool parseCMF(FileAndMemReader &fr);
835+
#endif
825836

826837
/**
827838
* @brief Load file as GMD/MUS files (ScummVM)

0 commit comments

Comments
 (0)