This commit is contained in:
Nikolay Korolev 2020-05-31 21:01:36 +03:00
parent c1c163d78c
commit f945dbc0fb
2 changed files with 2 additions and 2 deletions

View file

@ -2289,7 +2289,7 @@ cSampleManager::SetStreamedVolumeAndPan(uint8 nVolume, uint8 nPan, uint8 nEffect
if ( nEffectFlag ) if ( nEffectFlag )
{ {
if ( nStream == 1 ) // TODO(MIAMI): || nStream == 2 when we have second mission channel? 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 else
AIL_set_stream_volume(mp3Stream[nStream], m_nEffectsFadeVolume*vol*m_nEffectsVolume >> 14); AIL_set_stream_volume(mp3Stream[nStream], m_nEffectsFadeVolume*vol*m_nEffectsVolume >> 14);
} }

View file

@ -1319,7 +1319,7 @@ cSampleManager::SetStreamedVolumeAndPan(uint8 nVolume, uint8 nPan, uint8 nEffect
{ {
if ( nEffectFlag ) { if ( nEffectFlag ) {
if ( nStream == 1 ) // TODO(MIAMI): || nStream == 2 when we have second mission channel? 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 else
stream->SetVolume(m_nEffectsFadeVolume*nVolume*m_nEffectsVolume >> 14); stream->SetVolume(m_nEffectsFadeVolume*nVolume*m_nEffectsVolume >> 14);
} }