summaryrefslogtreecommitdiffstats
path: root/src/audio/MusicManager.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-20 19:49:24 +0200
committeraap <aap@papnet.eu>2020-05-20 19:49:24 +0200
commit114208533a433d83117ef7a4e7c25a2fa59d3030 (patch)
tree172de606bc1a2e203f8ee5933a47e26370f90668 /src/audio/MusicManager.cpp
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
parentMerge remote-tracking branch 'origin/master' into miami (diff)
downloadre3-114208533a433d83117ef7a4e7c25a2fa59d3030.tar
re3-114208533a433d83117ef7a4e7c25a2fa59d3030.tar.gz
re3-114208533a433d83117ef7a4e7c25a2fa59d3030.tar.bz2
re3-114208533a433d83117ef7a4e7c25a2fa59d3030.tar.lz
re3-114208533a433d83117ef7a4e7c25a2fa59d3030.tar.xz
re3-114208533a433d83117ef7a4e7c25a2fa59d3030.tar.zst
re3-114208533a433d83117ef7a4e7c25a2fa59d3030.zip
Diffstat (limited to '')
-rw-r--r--src/audio/MusicManager.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/audio/MusicManager.cpp b/src/audio/MusicManager.cpp
index 841573a9..afe31bf0 100644
--- a/src/audio/MusicManager.cpp
+++ b/src/audio/MusicManager.cpp
@@ -21,8 +21,6 @@ int32 gNumRetunePresses;
int32 gRetuneCounter;
bool bHasStarted;
-const int maxVolume = 127;
-
cMusicManager::cMusicManager()
{
m_bIsInitialised = false;
@@ -376,7 +374,7 @@ cMusicManager::Service()
if (!m_bIsInitialised || m_bDisabled) return;
if (m_nMusicMode == MUSICMODE_CUTSCENE) {
- SampleManager.SetStreamedVolumeAndPan(maxVolume, 63, 1, 0);
+ SampleManager.SetStreamedVolumeAndPan(MAX_VOLUME, 63, 1, 0);
return;
}
@@ -677,7 +675,7 @@ cMusicManager::PreloadCutSceneMusic(uint8 track)
while (SampleManager.IsStreamPlaying(0))
SampleManager.StopStreamedFile(0);
SampleManager.PreloadStreamedFile(track, 0);
- SampleManager.SetStreamedVolumeAndPan(maxVolume, 63, 1, 0);
+ SampleManager.SetStreamedVolumeAndPan(MAX_VOLUME, 63, 1, 0);
m_nCurrentStreamedSound = track;
}
}