aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi_opl3.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2020-09-01 10:48:29 +0300
committerWohlstand <admin@wohlnet.ru>2020-09-01 10:48:29 +0300
commit962aabb02e46b3020fe7781d7ccb0ecd8f42f92c (patch)
tree2f0df937544a88b93b5748a2f94840297fb81067 /src/adlmidi_opl3.cpp
parent6980a6cbc6e0d1d5f3486510d0d931b05a417d37 (diff)
downloadlibADLMIDI-962aabb02e46b3020fe7781d7ccb0ecd8f42f92c.tar.gz
libADLMIDI-962aabb02e46b3020fe7781d7ccb0ecd8f42f92c.tar.bz2
libADLMIDI-962aabb02e46b3020fe7781d7ccb0ecd8f42f92c.zip
Make "minVolume" constant be constant
Diffstat (limited to 'src/adlmidi_opl3.cpp')
-rw-r--r--src/adlmidi_opl3.cpp2
1 files changed, 1 insertions, 1 deletions
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)