diff options
author | Filip Gawin <filip.gawin@zoho.com> | 2020-02-28 18:34:39 +0100 |
---|---|---|
committer | Filip Gawin <filip.gawin@zoho.com> | 2020-03-22 17:30:54 +0100 |
commit | 337924c7944115a9212edfb1097a8f83e7f6daf0 (patch) | |
tree | 2d64a0f5e45a0de92682c49db53c6cb8559d1cf4 /src/audio/AudioManager.h | |
parent | Remove unneeded double to float casts (diff) | |
download | re3-337924c7944115a9212edfb1097a8f83e7f6daf0.tar re3-337924c7944115a9212edfb1097a8f83e7f6daf0.tar.gz re3-337924c7944115a9212edfb1097a8f83e7f6daf0.tar.bz2 re3-337924c7944115a9212edfb1097a8f83e7f6daf0.tar.lz re3-337924c7944115a9212edfb1097a8f83e7f6daf0.tar.xz re3-337924c7944115a9212edfb1097a8f83e7f6daf0.tar.zst re3-337924c7944115a9212edfb1097a8f83e7f6daf0.zip |
Diffstat (limited to 'src/audio/AudioManager.h')
-rw-r--r-- | src/audio/AudioManager.h | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h index cac3ea65..81e5c89d 100644 --- a/src/audio/AudioManager.h +++ b/src/audio/AudioManager.h @@ -53,8 +53,8 @@ enum eScriptSounds : int16 SCRIPT_SOUND_CHINATOWN_RESTAURANT_L = 43, SCRIPT_SOUND_CIPRIANI_RESAURANT_S = 44, SCRIPT_SOUND_CIPRIANI_RESAURANT_L = 45, - SCRIPT_SOUND_46 = 46, - SCRIPT_SOUND_47 = 47, + SCRIPT_SOUND_46_S = 46, + SCRIPT_SOUND_47_L = 47, SCRIPT_SOUND_MARCO_BISTRO_S = 48, SCRIPT_SOUND_MARCO_BISTRO_L = 49, SCRIPT_SOUND_AIRPORT_LOOP_S = 50, @@ -224,9 +224,11 @@ static_assert(sizeof(tPedComment) == 28, "tPedComment: error"); class cPedComments { public: - tPedComment m_asPedComments[2][20]; - uint8 indexMap[2][20]; - uint8 nrOfCommentsInBank[2]; + static constexpr int pedCommentsBanks = 2; + static constexpr int pedCommentsSlots = 20; + tPedComment m_asPedComments[pedCommentsBanks][pedCommentsSlots]; + uint8 indexMap[pedCommentsBanks][pedCommentsSlots]; + uint8 nrOfCommentsInBank[pedCommentsBanks]; uint8 activeBank; uint8 gap_1163[1]; @@ -607,10 +609,20 @@ public: uint8 ComputeEmittingVolume(uint8 emittingVolume, float intensity, float dist); /// ok public: - static const int channels = ARRAY_SIZE(cAudioManager::m_asActiveSamples); - static const int policeChannel = channels + 1; - static const int allChannels = channels + 2; - static const int maxVolume = 127; + static constexpr int channels = ARRAY_SIZE(cAudioManager::m_asActiveSamples); + static constexpr int policeChannel = channels + 1; + static constexpr int allChannels = channels + 2; + static constexpr int maxVolume = 127; + + static constexpr int scriptObjectIntensityS = 30; + static constexpr int scriptObjectIntensityL = 80; + static constexpr int bridgeIntensity = 400; + static constexpr int rocketLauncherIntensity = 90; + static constexpr int molotovIntensity = 30; + static constexpr int molotovVolume = 50; + + static constexpr int rainOnVehicleIntensity = 22; + static constexpr int reverseGearIntensity = 30; }; static_assert(sizeof(cAudioManager) == 19220, "cAudioManager: error"); |