aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_load.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-09-02 22:49:14 +0300
committerWohlstand <admin@wohlnet.ru>2020-09-02 22:49:14 +0300
commit9d34329f81f9d2588c27d828aaaf3a3d5f222da3 (patch)
treec108d67d0f9d884778f7fd3d2a3a6097ec860c01 /src/adlmidi_load.cpp
parentd29b0cacf3e7a1da793fc2692a958dcf6c4b9c75 (diff)
parent23061e32c03272f65a5dd21433d34e90bdf2a7ad (diff)
downloadlibADLMIDI-9d34329f81f9d2588c27d828aaaf3a3d5f222da3.tar.gz
libADLMIDI-9d34329f81f9d2588c27d828aaaf3a3d5f222da3.tar.bz2
libADLMIDI-9d34329f81f9d2588c27d828aaaf3a3d5f222da3.zip
Merge branch 'master' of github.com:Wohlstand/libADLMIDI
Diffstat (limited to 'src/adlmidi_load.cpp')
-rw-r--r--src/adlmidi_load.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/adlmidi_load.cpp b/src/adlmidi_load.cpp
index 40e0d4c..fbf87fa 100644
--- a/src/adlmidi_load.cpp
+++ b/src/adlmidi_load.cpp
@@ -109,6 +109,9 @@ bool MIDIplay::LoadBank(FileAndMemReader &fr)
}
Synth &synth = *m_synth;
+
+ synth.setEmbeddedBank(m_setup.bankId);
+
synth.m_insBankSetup.scaleModulators = false;
synth.m_insBankSetup.deepTremolo = (wopl->opl_flags & WOPL_FLAG_DEEP_TREMOLO) != 0;
synth.m_insBankSetup.deepVibrato = (wopl->opl_flags & WOPL_FLAG_DEEP_VIBRATO) != 0;
@@ -117,8 +120,6 @@ bool MIDIplay::LoadBank(FileAndMemReader &fr)
m_setup.deepVibratoMode = -1;
m_setup.volumeScaleModel = ADLMIDI_VolumeModel_AUTO;
- synth.setEmbeddedBank(m_setup.bankId);
-
uint16_t slots_counts[2] = {wopl->banks_count_melodic, wopl->banks_count_percussion};
WOPLBank *slots_src_ins[2] = { wopl->banks_melodic, wopl->banks_percussive };