aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-02-15 16:19:08 +0300
committerWohlstand <admin@wohlnet.ru>2017-02-15 16:19:08 +0300
commit9cd892706bf782c8a0e47731bd71e629d505c5cf (patch)
tree5d83247581e0b9a513be0ea38135afa3c94b440f /src/adlmidi.cpp
parentba0b0c4d5c1e8c8926c6838dddb0f6abdbccd9f2 (diff)
downloadlibADLMIDI-9cd892706bf782c8a0e47731bd71e629d505c5cf.tar.gz
libADLMIDI-9cd892706bf782c8a0e47731bd71e629d505c5cf.tar.bz2
libADLMIDI-9cd892706bf782c8a0e47731bd71e629d505c5cf.zip
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.
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r--src/adlmidi.cpp3
1 files changed, 2 insertions, 1 deletions
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;