aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-02-22 13:04:39 +0300
committerWohlstand <admin@wohlnet.ru>2020-02-22 13:04:39 +0300
commit6ae9ca1265f8249af680f366b5a56934c7b2d7bb (patch)
treedb29afc329050729852bfcc86b8b3419ad74ea15 /src/adlmidi.cpp
parentb92112685b1d1ba0ae376069bc42d61300a97fa1 (diff)
parent58c5becbdfd451b4181661a5ff2d3e556e4e8501 (diff)
downloadlibADLMIDI-6ae9ca1265f8249af680f366b5a56934c7b2d7bb.tar.gz
libADLMIDI-6ae9ca1265f8249af680f366b5a56934c7b2d7bb.tar.bz2
libADLMIDI-6ae9ca1265f8249af680f366b5a56934c7b2d7bb.zip
Merge branch 'master' into wip-new-embedded-banks
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r--src/adlmidi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp
index 3274716..88dae70 100644
--- a/src/adlmidi.cpp
+++ b/src/adlmidi.cpp
@@ -2,7 +2,7 @@
* libADLMIDI is a free Software MIDI synthesizer library with OPL3 emulation
*
* Original ADLMIDI code: Copyright (c) 2010-2014 Joel Yliluoma <bisqwit@iki.fi>
- * ADLMIDI Library API: Copyright (c) 2015-2019 Vitaly Novichkov <admin@wohlnet.ru>
+ * ADLMIDI Library API: Copyright (c) 2015-2020 Vitaly Novichkov <admin@wohlnet.ru>
*
* Library is based on the ADLMIDI, a MIDI player for Linux and Windows with OPL3 emulation:
* http://iki.fi/bisqwit/source/adlmidi.html
@@ -278,7 +278,7 @@ ADLMIDI_EXPORT int adl_getBank(ADL_MIDIPlayer *device, const ADL_BankId *idp, in
value.second.ins[i].flags = adlinsdata::Flag_NoSound;
std::pair<Synth::BankMap::iterator, bool> ir;
- if(flags & ADLMIDI_Bank_CreateRt)
+ if((flags & ADLMIDI_Bank_CreateRt) == ADLMIDI_Bank_CreateRt)
{
ir = map.insert(value, Synth::BankMap::do_not_expand_t());
if(ir.first == map.end())