Started test_mus for devtest. Commented out unused variables in midi.c and wildmidi_lib.c. Initialised copyright info which fixed a seg.
Initial mus parsing with wildmidi-devtest. There is an issue with it that means it is not parsing correctly. Note: possible endless loop also exists (due to commented out code). Will look into the parsing error in the morning if I don’t have a eureka moment before hand.
MUS parser in wildmidi-devtest now working. Please test wildmidi-devtest with MUS files.
UNTESTED:
Added -f# option to pass on the frequency to play the file at (with formats that support it such as MUS (doom) format.
Extern’d _cvt_reset_options and _cvt_get_options. _cvt_reset_options may be able to go back to static def.
Added error for MUS (doom) files.
Optimised MUS (doom) header check in wildmidi-devtest.
Added _WM_ParseNewMus().
Added FIXME:’s for areas that I need to check and work on.
UNTESTED:
Added dummy function for midi control commands that we don’t support.
Added mus_wm.c and mus_wm.h to build process.
Added handling of dummy control event for midi file output.
Added MUS header check to WildMidi_Open/OpenBuffer.
FAULTY: Need Valgrind Run On This Please.
Added additional operand to MIDI_EVENT_DEBUG.
Added MIDI_EVENT_DEBUG to more functions.
Added conditional definitions around some MIDI_EVENT_DEBUG calls where ‘ch’ was only needed if debugging.
Renamed and adjusted voices adjustment setting to better represent what its for, still need to fine tune.
Switched initial reset to GM instead of Roland.
Added code to switch drums in MUS from channel 15 to channel 9.
Fixed error when wrong byte was being read for patch in MUS file.
Removed coding debug printf’s.
Adjusted the overall volume adjustment setting.
Fixed bug that was stomping on event data values.
Added MUS_EVENT_DEBUG for debugging, conditional by defining DEBUG_MUS.
Disabled enhanced resampling. Lib will use linear regardless of setting.
Use the newly added WM_ERR_NOT_MUS in mus.c instead of WM_ERR_NOT_MIDI