summaryrefslogtreecommitdiffstats
path: root/src/audio/PoliceRadio.cpp
diff options
context:
space:
mode:
authorFilip Gawin <filip.gawin@zoho.com>2020-03-21 14:51:30 +0100
committerFilip Gawin <filip.gawin@zoho.com>2020-03-22 17:30:54 +0100
commita097f225bcc4782820f76cc79b2c9121daae109b (patch)
tree4a599984a9b67565f3345054760426af155ec038 /src/audio/PoliceRadio.cpp
parentCleanup audio code + fixes for review (diff)
downloadre3-a097f225bcc4782820f76cc79b2c9121daae109b.tar
re3-a097f225bcc4782820f76cc79b2c9121daae109b.tar.gz
re3-a097f225bcc4782820f76cc79b2c9121daae109b.tar.bz2
re3-a097f225bcc4782820f76cc79b2c9121daae109b.tar.lz
re3-a097f225bcc4782820f76cc79b2c9121daae109b.tar.xz
re3-a097f225bcc4782820f76cc79b2c9121daae109b.tar.zst
re3-a097f225bcc4782820f76cc79b2c9121daae109b.zip
Diffstat (limited to '')
-rw-r--r--src/audio/PoliceRadio.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/audio/PoliceRadio.cpp b/src/audio/PoliceRadio.cpp
index a1f719ea..60888f71 100644
--- a/src/audio/PoliceRadio.cpp
+++ b/src/audio/PoliceRadio.cpp
@@ -11,6 +11,9 @@
#include "Vehicle.h"
#include "World.h"
+constexpr int maxVolume = 127;
+constexpr int channels = ARRAY_SIZE(cAudioManager::m_asActiveSamples);
+constexpr int policeChannel = channels + 1;
struct tPoliceRadioZone {
char m_aName[8];