diff options
author | aap <aap@papnet.eu> | 2020-05-20 19:49:24 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-05-20 19:49:24 +0200 |
commit | 114208533a433d83117ef7a4e7c25a2fa59d3030 (patch) | |
tree | 172de606bc1a2e203f8ee5933a47e26370f90668 /src/audio/MusicManager.cpp | |
parent | Merge branch 'miami' of github.com:GTAmodding/re3 into miami (diff) | |
parent | Merge remote-tracking branch 'origin/master' into miami (diff) | |
download | re3-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.cpp | 6 |
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; } } |