diff options
author | JP Cimalando <jpcima@users.noreply.github.com> | 2018-08-30 11:01:42 +0200 |
---|---|---|
committer | JP Cimalando <jpcima@users.noreply.github.com> | 2018-08-30 11:01:42 +0200 |
commit | 13e4cb1528f36d3514fa6d7f26eb4028194c5b07 (patch) | |
tree | f5ca1b25d404c3a18949de4af63630a2d4adcb7b | |
parent | 49614671cd7486645b01b63c54298352ee6b5eff (diff) | |
download | libADLMIDI-13e4cb1528f36d3514fa6d7f26eb4028194c5b07.tar.gz libADLMIDI-13e4cb1528f36d3514fa6d7f26eb4028194c5b07.tar.bz2 libADLMIDI-13e4cb1528f36d3514fa6d7f26eb4028194c5b07.zip |
fix a case of miscalculation and infinite loop
-rw-r--r-- | src/adlmidi_midiplay.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp index 49aa119..f405489 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -1599,7 +1599,7 @@ void MIDIplay::setRPN(size_t midCh, unsigned value, bool MSB) case 0x0109 + 1*0x10000 + 1*0x20000: if((m_synthMode & Mode_XG) != 0) // Vibrato depth { - m_midiChannels[midCh].vibdepth = ((value - 64) * 0.15) * 0.01; + m_midiChannels[midCh].vibdepth = (((int)value - 64) * 0.15) * 0.01; } break; case 0x010A + 1*0x10000 + 1*0x20000: |