diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-06-25 14:51:00 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2018-06-25 14:51:00 +0300 |
commit | ef601741e585f7b48c2fe81304bcba4d161ed375 (patch) | |
tree | 72950e2ef59e71e15721561df4eadca4a7268fde /src | |
parent | 1c2477bb771491513ba3b873495ff8b0232c125f (diff) | |
download | libADLMIDI-ef601741e585f7b48c2fe81304bcba4d161ed375.tar.gz libADLMIDI-ef601741e585f7b48c2fe81304bcba4d161ed375.tar.bz2 libADLMIDI-ef601741e585f7b48c2fe81304bcba4d161ed375.zip |
Fixed missing refresh of 4-op channels count
Diffstat (limited to 'src')
-rw-r--r-- | src/adlmidi.cpp | 1 | ||||
-rw-r--r-- | src/adlmidi_private.cpp | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 6663e45..32872ef 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -319,6 +319,7 @@ ADLMIDI_EXPORT int adl_setNumFourOpsChn(ADL_MIDIPlayer *device, int ops4) play->m_setup.numFourOps = static_cast<unsigned int>(ops4); play->m_synth.m_numFourOps = play->m_setup.numFourOps; + play->m_synth.updateChannelCategories(); return 0; //adlRefreshNumCards(device); } diff --git a/src/adlmidi_private.cpp b/src/adlmidi_private.cpp index 8e7d260..ecedd9e 100644 --- a/src/adlmidi_private.cpp +++ b/src/adlmidi_private.cpp @@ -101,6 +101,8 @@ int adlRefreshNumCards(ADL_MIDIPlayer *device) */ play->m_synth.m_numFourOps = play->m_setup.numFourOps = static_cast<unsigned>(numFourOps * play->m_setup.numChips); + // Update channel categories and set up four-operator channels + play->m_synth.updateChannelCategories(); return 0; } |