diff options
author | Wohlstand <admin@wohlnet.ru> | 2017-11-26 05:00:27 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2017-11-26 05:00:27 +0300 |
commit | 617fc1592e56dd7ae4800363886346da3f4d2eee (patch) | |
tree | b0d5475efd738a64ea3f544e490939300d694756 | |
parent | 75c16deafb6ae607f12bb127f76c5cdf3ed3905a (diff) | |
download | libADLMIDI-617fc1592e56dd7ae4800363886346da3f4d2eee.tar.gz libADLMIDI-617fc1592e56dd7ae4800363886346da3f4d2eee.tar.bz2 libADLMIDI-617fc1592e56dd7ae4800363886346da3f4d2eee.zip |
Fix a support for tristate flags (Default, Force-On and Force-Off)
-rw-r--r-- | src/adlmidi.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index e96c757..3b124eb 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -171,7 +171,7 @@ ADLMIDI_EXPORT void adl_setPercMode(ADL_MIDIPlayer *device, int percmod) { if(!device) return; MIDIplay *play = reinterpret_cast<MIDIplay *>(device->adl_midiPlayer); - play->m_setup.AdlPercussionMode = (percmod != 0); + play->m_setup.AdlPercussionMode = percmod; play->opl.AdlPercussionMode = play->m_setup.AdlPercussionMode; } @@ -179,7 +179,7 @@ ADLMIDI_EXPORT void adl_setHVibrato(ADL_MIDIPlayer *device, int hvibro) { if(!device) return; MIDIplay *play = reinterpret_cast<MIDIplay *>(device->adl_midiPlayer); - play->m_setup.HighVibratoMode = (hvibro != 0); + play->m_setup.HighVibratoMode = hvibro; play->opl.HighVibratoMode = play->m_setup.HighVibratoMode; } @@ -187,7 +187,7 @@ ADLMIDI_EXPORT void adl_setHTremolo(ADL_MIDIPlayer *device, int htremo) { if(!device) return; MIDIplay *play = reinterpret_cast<MIDIplay *>(device->adl_midiPlayer); - play->m_setup.HighTremoloMode = (htremo != 0); + play->m_setup.HighTremoloMode = htremo; play->opl.HighTremoloMode = play->m_setup.HighTremoloMode; } @@ -195,7 +195,7 @@ ADLMIDI_EXPORT void adl_setScaleModulators(ADL_MIDIPlayer *device, int smod) { if(!device) return; MIDIplay *play = reinterpret_cast<MIDIplay *>(device->adl_midiPlayer); - play->m_setup.ScaleModulators = (smod != 0); + play->m_setup.ScaleModulators = smod; play->opl.ScaleModulators = play->m_setup.ScaleModulators; } @@ -210,7 +210,7 @@ ADLMIDI_EXPORT void adl_setLogarithmicVolumes(struct ADL_MIDIPlayer *device, int { if(!device) return; MIDIplay *play = reinterpret_cast<MIDIplay *>(device->adl_midiPlayer); - play->m_setup.LogarithmicVolumes = (logvol != 0); + play->m_setup.LogarithmicVolumes = logvol; play->opl.LogarithmicVolumes = play->m_setup.LogarithmicVolumes; } |