summaryrefslogtreecommitdiffstats
path: root/src/audio/sampman_oal.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-27 07:10:36 +0200
committerGitHub <noreply@github.com>2020-05-27 07:10:36 +0200
commit4868bf13a8cab8fd62567c9544ff06197d6991a5 (patch)
tree917402726d9ec883378751256c1232ab7cc0b734 /src/audio/sampman_oal.cpp
parentMT function for fakerw (diff)
parentOpenAL support (diff)
downloadre3-4868bf13a8cab8fd62567c9544ff06197d6991a5.tar
re3-4868bf13a8cab8fd62567c9544ff06197d6991a5.tar.gz
re3-4868bf13a8cab8fd62567c9544ff06197d6991a5.tar.bz2
re3-4868bf13a8cab8fd62567c9544ff06197d6991a5.tar.lz
re3-4868bf13a8cab8fd62567c9544ff06197d6991a5.tar.xz
re3-4868bf13a8cab8fd62567c9544ff06197d6991a5.tar.zst
re3-4868bf13a8cab8fd62567c9544ff06197d6991a5.zip
Diffstat (limited to 'src/audio/sampman_oal.cpp')
-rw-r--r--src/audio/sampman_oal.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/audio/sampman_oal.cpp b/src/audio/sampman_oal.cpp
index 1952f370..5092a4b1 100644
--- a/src/audio/sampman_oal.cpp
+++ b/src/audio/sampman_oal.cpp
@@ -833,7 +833,7 @@ cSampleManager::LoadPedComment(uint32 nComment)
case MUSICMODE_FRONTEND:
{
- if ( MusicManager.GetCurrentTrack() == STREAMED_SOUND_GAME_COMPLETED )
+ if ( MusicManager.GetCurrentTrack() == STREAMED_SOUND_CUTSCENE_FINALE)
return false;
break;
@@ -1057,10 +1057,8 @@ cSampleManager::SetChannelEmittingVolume(uint32 nChannel, uint32 nVolume)
nChannelVolume[nChannel] = vol;
- // reduce channel volume when JB.MP3 or S4_BDBD.MP3 playing
if ( MusicManager.GetMusicMode() == MUSICMODE_CUTSCENE
- && MusicManager.GetCurrentTrack() != STREAMED_SOUND_NEWS_INTRO
- && MusicManager.GetCurrentTrack() != STREAMED_SOUND_CUTSCENE_SAL4_BDBD )
+ && MusicManager.GetCurrentTrack() != STREAMED_SOUND_CUTSCENE_FINALE )
{
nChannelVolume[nChannel] = vol / 4;
}
@@ -1099,10 +1097,8 @@ cSampleManager::SetChannelVolume(uint32 nChannel, uint32 nVolume)
nChannelVolume[nChannel] = vol;
- // reduce the volume for JB.MP3 and S4_BDBD.MP3
if ( MusicManager.GetMusicMode() == MUSICMODE_CUTSCENE
- && MusicManager.GetCurrentTrack() != STREAMED_SOUND_NEWS_INTRO
- && MusicManager.GetCurrentTrack() != STREAMED_SOUND_CUTSCENE_SAL4_BDBD )
+ && MusicManager.GetCurrentTrack() != STREAMED_SOUND_CUTSCENE_FINALE )
{
nChannelVolume[nChannel] = vol / 4;
}