summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioLogic.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-21 07:42:00 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-21 07:42:00 +0200
commitfe51abd53420fdeb241c1a733651ea9ec615453a (patch)
tree4709e7e9cedcbd69243064c11d541b55ab28174c /src/audio/AudioLogic.cpp
parentAuto switch to remote grenade after detonator (diff)
downloadre3-fe51abd53420fdeb241c1a733651ea9ec615453a.tar
re3-fe51abd53420fdeb241c1a733651ea9ec615453a.tar.gz
re3-fe51abd53420fdeb241c1a733651ea9ec615453a.tar.bz2
re3-fe51abd53420fdeb241c1a733651ea9ec615453a.tar.lz
re3-fe51abd53420fdeb241c1a733651ea9ec615453a.tar.xz
re3-fe51abd53420fdeb241c1a733651ea9ec615453a.tar.zst
re3-fe51abd53420fdeb241c1a733651ea9ec615453a.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioLogic.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index c1181888..9d6fa51d 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -2017,7 +2017,11 @@ cAudioManager::ProcessPlayersVehicleEngine(cVehicleParams& params, CVehicle* veh
bool8 isMoped = FALSE;
bool8 processedAccelSampleStopped = FALSE;
static uint32 gearSoundStartTime = CTimer::GetTimeInMilliseconds();
- uint8 nChannel = CHANNEL_PLAYER_VEHICLE_ENGINE; // TODO: PS2 channels
+#ifdef GTA_PS2
+ uint8 nChannel = m_bIsSurround ? CHANNEL_DTS_PLAYER_VEHICLE_ENGINE : CHANNEL_PLAYER_VEHICLE_ENGINE;
+#else
+ uint8 nChannel = CHANNEL_PLAYER_VEHICLE_ENGINE;
+#endif
if (bPlayerJustEnteredCar) {
bAccelSampleStopped = TRUE;
bPlayerJustEnteredCar = FALSE;