aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi.cpp
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2018-08-31 03:55:14 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2018-08-31 03:55:14 +0300
commitd8b894af640bd1e2b1115bd69c29b4654b3c6973 (patch)
tree6d5d28788bd719e6439976cd4716673bc74bc654 /src/adlmidi.cpp
parentc7b3199669a7b7e0ba11eb0d94d4e143a5fdd633 (diff)
parentcf121066a365286bd1427f54064b487799623ec9 (diff)
downloadlibADLMIDI-d8b894af640bd1e2b1115bd69c29b4654b3c6973.tar.gz
libADLMIDI-d8b894af640bd1e2b1115bd69c29b4654b3c6973.tar.bz2
libADLMIDI-d8b894af640bd1e2b1115bd69c29b4654b3c6973.zip
Merge branch 'master' of git@github.com:Wohlstand/libADLMIDI.git
# Conflicts: # src/adlmidi_opl3.cpp
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r--src/adlmidi.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp
index c7c5cf3..26a21e4 100644
--- a/src/adlmidi.cpp
+++ b/src/adlmidi.cpp
@@ -351,6 +351,10 @@ ADLMIDI_EXPORT int adl_setNumFourOpsChn(ADL_MIDIPlayer *device, int ops4)
{
if(!device)
return -1;
+
+ if(ops4 == -1)
+ return adlRefreshNumCards(device);
+
MidiPlayer *play = GET_MIDI_PLAYER(device);
if((unsigned int)ops4 > 6 * play->m_setup.numChips)
{
@@ -364,7 +368,7 @@ ADLMIDI_EXPORT int adl_setNumFourOpsChn(ADL_MIDIPlayer *device, int ops4)
play->m_synth.m_numFourOps = play->m_setup.numFourOps;
play->m_synth.updateChannelCategories();
- return 0; //adlRefreshNumCards(device);
+ return 0;
}
ADLMIDI_EXPORT int adl_getNumFourOpsChn(struct ADL_MIDIPlayer *device)