diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-05-20 13:39:36 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-05-20 13:39:36 +0200 |
commit | c53b23cff026e72bca295495ab0bc9c20a18c599 (patch) | |
tree | 172de606bc1a2e203f8ee5933a47e26370f90668 /src/audio/PoliceRadio.cpp | |
parent | Merge pull request #569 from aap/miami (diff) | |
parent | fixed script bug (diff) | |
download | re3-c53b23cff026e72bca295495ab0bc9c20a18c599.tar re3-c53b23cff026e72bca295495ab0bc9c20a18c599.tar.gz re3-c53b23cff026e72bca295495ab0bc9c20a18c599.tar.bz2 re3-c53b23cff026e72bca295495ab0bc9c20a18c599.tar.lz re3-c53b23cff026e72bca295495ab0bc9c20a18c599.tar.xz re3-c53b23cff026e72bca295495ab0bc9c20a18c599.tar.zst re3-c53b23cff026e72bca295495ab0bc9c20a18c599.zip |
Diffstat (limited to 'src/audio/PoliceRadio.cpp')
-rw-r--r-- | src/audio/PoliceRadio.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/audio/PoliceRadio.cpp b/src/audio/PoliceRadio.cpp index abacb425..c8baec25 100644 --- a/src/audio/PoliceRadio.cpp +++ b/src/audio/PoliceRadio.cpp @@ -14,7 +14,6 @@ #include "Zones.h" #include "sampman.h" -const int maxVolume = 127; const int channels = ARRAY_SIZE(cAudioManager::m_asActiveSamples); const int policeChannel = channels + 1; @@ -227,7 +226,7 @@ cAudioManager::ServicePoliceRadioChannel(int32 wantedLevel) } } else if (!SampleManager.GetChannelUsedFlag(policeChannel)) { SampleManager.PreloadStreamedFile(g_nMissionAudioSfx, 1); - SampleManager.SetStreamedVolumeAndPan(maxVolume, 63, 1, 1); + SampleManager.SetStreamedVolumeAndPan(MAX_VOLUME, 63, 1, 1); SampleManager.StartPreloadedStreamedFile(1); g_nMissionAudioPlayingStatus = 1; bMissionAudioPhysicalPlayingStatus = 0; |