diff options
author | Wohlstand <admin@wohlnet.ru> | 2017-11-08 23:11:01 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2017-11-08 23:11:01 +0300 |
commit | 17b5e86f44f3d71e8fe43c40f57c12a9649c7ad5 (patch) | |
tree | 20b9fae8246c878feb2331e55fa8221c532804b2 /src/adlmidi_load.cpp | |
parent | f87e983001067c693fec5d0aaf7282c22dc6acb6 (diff) | |
download | libADLMIDI-17b5e86f44f3d71e8fe43c40f57c12a9649c7ad5.tar.gz libADLMIDI-17b5e86f44f3d71e8fe43c40f57c12a9649c7ad5.tar.bz2 libADLMIDI-17b5e86f44f3d71e8fe43c40f57c12a9649c7ad5.zip |
Fixed zero four-operators bug when using a bigger non-GM bank
Diffstat (limited to 'src/adlmidi_load.cpp')
-rw-r--r-- | src/adlmidi_load.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/adlmidi_load.cpp b/src/adlmidi_load.cpp index 3eea1b7..359536a 100644 --- a/src/adlmidi_load.cpp +++ b/src/adlmidi_load.cpp @@ -244,6 +244,8 @@ bool MIDIplay::LoadBank(MIDIplay::fileReader &fr) opl.dynamic_melodic_banks.clear(); opl.dynamic_percussion_banks.clear(); + opl.setEmbeddedBank(m_setup.AdlBank); + if(version >= 2)//Read bank meta-entries { for(uint16_t i = 0; i < count_melodic_banks; i++) @@ -279,8 +281,6 @@ bool MIDIplay::LoadBank(MIDIplay::fileReader &fr) } } - opl.setEmbeddedBank(m_setup.AdlBank); - uint16_t total = 128 * count_melodic_banks; bool readPercussion = false; |