From 9cd892706bf782c8a0e47731bd71e629d505c5cf Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Wed, 15 Feb 2017 16:19:08 +0300 Subject: Fixed logarithmic volumes flag and added support for XMI and MUS formats MUS playing was totally invalid: the MUS data are completely different from regular MIDI data. Now is added a right converter which results a MIDI data which can be played correctly. --- src/adlmidi.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/adlmidi.cpp') diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 4c7fcf7..d54ce9a 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -265,7 +265,8 @@ ADLMIDI_EXPORT void adl_close(ADL_MIDIPlayer *device) ADLMIDI_EXPORT void adl_reset(ADL_MIDIPlayer *device) { - if(!device) return; + if(!device) + return; device->stored_samples = 0; device->backup_samples_size = 0; -- cgit v1.2.3