diff options
author | Wohlstand <admin@wohlnet.ru> | 2020-09-10 01:51:48 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2020-09-10 01:51:48 +0300 |
commit | fcd50f3d31dcc94ebcaf1f5a86f811973462bb57 (patch) | |
tree | a68acf49b89640c0319bcac110515301742002bc /src/adlmidi_opl3.cpp | |
parent | 5f0940a32541ca2de5441e3b4171cb25ff462f4d (diff) | |
download | libADLMIDI-fcd50f3d31dcc94ebcaf1f5a86f811973462bb57.tar.gz libADLMIDI-fcd50f3d31dcc94ebcaf1f5a86f811973462bb57.tar.bz2 libADLMIDI-fcd50f3d31dcc94ebcaf1f5a86f811973462bb57.zip |
Fixed an accuracy of Win9X frequency model
Diffstat (limited to 'src/adlmidi_opl3.cpp')
-rw-r--r-- | src/adlmidi_opl3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp index b4d116b..5a44c13 100644 --- a/src/adlmidi_opl3.cpp +++ b/src/adlmidi_opl3.cpp @@ -452,7 +452,7 @@ void OPL3::noteOn(size_t c1, size_t c2, double hertz) // Hertz range: 0..131071 mul_offset++; } - ftone = octave + static_cast<uint32_t>(hertz + 0.5); + ftone = octave + static_cast<uint32_t>(hertz /*+ 0.5*/); uint32_t chn = g_channelsMap[cc1]; const adldata &patch1 = m_insCache[c1]; const adldata &patch2 = m_insCache[c2 < m_insCache.size() ? c2 : 0]; |