diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2018-06-19 22:42:42 +0300 |
---|---|---|
committer | JP Cimalando <jpcima@users.noreply.github.com> | 2018-06-19 22:21:58 +0200 |
commit | 94470c7e544a8086b02aa12e7361b64bacb44ee6 (patch) | |
tree | 35aa61182ae55dd397f88013b561ec1e2e8238de | |
parent | 2f26855c27aaffee0472edf43dbc5ac5ca1a5162 (diff) | |
download | libADLMIDI-94470c7e544a8086b02aa12e7361b64bacb44ee6.tar.gz libADLMIDI-94470c7e544a8086b02aa12e7361b64bacb44ee6.tar.bz2 libADLMIDI-94470c7e544a8086b02aa12e7361b64bacb44ee6.zip |
Fixed DJGPP build
-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 f52d936..0a4639a 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -2463,7 +2463,7 @@ void MIDIplay::UpdatePortamento(unsigned MidCh) double rate = HUGE_VAL; uint16_t midival = Ch[MidCh].portamento; if(Ch[MidCh].portamentoEnable && midival > 0) - rate = 350.0 * std::exp2(-0.062 * (1.0 / 128) * midival); + rate = 350.0 * std::pow(2.0, -0.062 * (1.0 / 128) * midival); Ch[MidCh].portamentoRate = rate; } |