summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-31 20:01:36 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-31 20:01:36 +0200
commitf945dbc0fb86a8db82d99cb524e54c1f0a0b2371 (patch)
tree7531109f27c98f882e9075438e4199d2a1e9ad37 /src
parentgame logic (diff)
downloadre3-f945dbc0fb86a8db82d99cb524e54c1f0a0b2371.tar
re3-f945dbc0fb86a8db82d99cb524e54c1f0a0b2371.tar.gz
re3-f945dbc0fb86a8db82d99cb524e54c1f0a0b2371.tar.bz2
re3-f945dbc0fb86a8db82d99cb524e54c1f0a0b2371.tar.lz
re3-f945dbc0fb86a8db82d99cb524e54c1f0a0b2371.tar.xz
re3-f945dbc0fb86a8db82d99cb524e54c1f0a0b2371.tar.zst
re3-f945dbc0fb86a8db82d99cb524e54c1f0a0b2371.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio/sampman_miles.cpp2
-rw-r--r--src/audio/sampman_oal.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/sampman_miles.cpp b/src/audio/sampman_miles.cpp
index 406e8716..5893ea64 100644
--- a/src/audio/sampman_miles.cpp
+++ b/src/audio/sampman_miles.cpp
@@ -2289,7 +2289,7 @@ cSampleManager::SetStreamedVolumeAndPan(uint8 nVolume, uint8 nPan, uint8 nEffect
if ( nEffectFlag )
{
if ( nStream == 1 ) // TODO(MIAMI): || nStream == 2 when we have second mission channel?
- AIL_set_stream_volume(mp3Stream[nStream], 64*vol*m_nEffectsVolume >> 14);
+ AIL_set_stream_volume(mp3Stream[nStream], 128*vol*m_nEffectsVolume >> 14);
else
AIL_set_stream_volume(mp3Stream[nStream], m_nEffectsFadeVolume*vol*m_nEffectsVolume >> 14);
}
diff --git a/src/audio/sampman_oal.cpp b/src/audio/sampman_oal.cpp
index 210d128e..767e4aa0 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(64*vol*m_nEffectsVolume >> 14)
+ stream->SetVolume(128*vol*m_nEffectsVolume >> 14)
else
stream->SetVolume(m_nEffectsFadeVolume*nVolume*m_nEffectsVolume >> 14);
}