summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-31 21:50:32 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-31 21:50:32 +0200
commit815d3e0f61e4c50929f1ba921e6a4dbbed9c4aa0 (patch)
tree87a6ae8d8872d79fc43018d6c6c427f99504ee44
parentdumb (diff)
downloadre3-815d3e0f61e4c50929f1ba921e6a4dbbed9c4aa0.tar
re3-815d3e0f61e4c50929f1ba921e6a4dbbed9c4aa0.tar.gz
re3-815d3e0f61e4c50929f1ba921e6a4dbbed9c4aa0.tar.bz2
re3-815d3e0f61e4c50929f1ba921e6a4dbbed9c4aa0.tar.lz
re3-815d3e0f61e4c50929f1ba921e6a4dbbed9c4aa0.tar.xz
re3-815d3e0f61e4c50929f1ba921e6a4dbbed9c4aa0.tar.zst
re3-815d3e0f61e4c50929f1ba921e6a4dbbed9c4aa0.zip
Diffstat (limited to '')
-rw-r--r--src/audio/sampman_oal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/sampman_oal.cpp b/src/audio/sampman_oal.cpp
index 767e4aa0..6ca8e840 100644
--- a/src/audio/sampman_oal.cpp
+++ b/src/audio/sampman_oal.cpp
@@ -1319,7 +1319,7 @@ cSampleManager::SetStreamedVolumeAndPan(uint8 nVolume, uint8 nPan, uint8 nEffect
{
if ( nEffectFlag ) {
if ( nStream == 1 ) // TODO(MIAMI): || nStream == 2 when we have second mission channel?
- stream->SetVolume(128*vol*m_nEffectsVolume >> 14)
+ stream->SetVolume(128*nVolume*m_nEffectsVolume >> 14)
else
stream->SetVolume(m_nEffectsFadeVolume*nVolume*m_nEffectsVolume >> 14);
}