From 962aabb02e46b3020fe7781d7ccb0ecd8f42f92c Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Tue, 1 Sep 2020 10:48:29 +0300 Subject: Make "minVolume" constant be constant --- src/adlmidi_opl3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adlmidi_opl3.cpp b/src/adlmidi_opl3.cpp index 5b1e018..44a0378 100644 --- a/src/adlmidi_opl3.cpp +++ b/src/adlmidi_opl3.cpp @@ -549,7 +549,7 @@ void OPL3::touchNote(size_t c, //volume = (int)(volume * std::sqrt( (double) ch[c].users.size() )); const double c1 = 11.541560327111707; const double c2 = 1.601379199767093e+02; - uint_fast32_t minVolume = 8725 * 127; + const uint_fast32_t minVolume = 1108075; // 8725 * 127 // The formula below: SOLVE(V=127^4 * 2^( (A-63.49999) / 8), A) if(volume > minVolume) -- cgit v1.2.3