aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi.cpp
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2019-07-01 05:01:55 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2019-07-01 05:01:55 +0300
commit81f905ea76f0efb6ea35331bd1fe476f14f804de (patch)
tree8146611e945a5080db9e7f6fc1805cc77565204b /src/adlmidi.cpp
parentd02cf717c2da0344b37db1ffb864d312713f3208 (diff)
downloadlibADLMIDI-81f905ea76f0efb6ea35331bd1fe476f14f804de.tar.gz
libADLMIDI-81f905ea76f0efb6ea35331bd1fe476f14f804de.tar.bz2
libADLMIDI-81f905ea76f0efb6ea35331bd1fe476f14f804de.zip
First working of new database
// not so stable, needs a polishing, however, multibank from embedded 72'th bank (DMXOPL3) works!
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 72cf601..81a3b1c 100644
--- a/src/adlmidi.cpp
+++ b/src/adlmidi.cpp
@@ -164,7 +164,7 @@ ADLMIDI_EXPORT int adl_setBank(ADL_MIDIPlayer *device, int bank)
"adl_openBankData() functions instead of adl_setBank().");
return -1;
#else
- const uint32_t NumBanks = static_cast<uint32_t>(maxAdlBanks());
+ const uint32_t NumBanks = static_cast<uint32_t>(g_embeddedBanksCount);
int32_t bankno = bank;
if(bankno < 0)
@@ -192,7 +192,7 @@ ADLMIDI_EXPORT int adl_setBank(ADL_MIDIPlayer *device, int bank)
ADLMIDI_EXPORT int adl_getBanksCount()
{
#ifndef DISABLE_EMBEDDED_BANKS
- return maxAdlBanks();
+ return static_cast<int>(g_embeddedBanksCount);
#else
return 0;
#endif