aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio/AudioLogic.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-24 15:24:28 +0300
committerSergeanur <s.anureev@yandex.ua>2021-08-24 15:24:28 +0300
commit9ecca45bf356c001737d671739f8091c395b6fce (patch)
treea3c3e520ec5890db79e599cc180b1ba14d7a908d /src/audio/AudioLogic.cpp
parent38f4ea7aa3773e5fa9ff99fa131b7db223117009 (diff)
Audio: fix PS2 ifdefs
Diffstat (limited to 'src/audio/AudioLogic.cpp')
-rw-r--r--src/audio/AudioLogic.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index da46d0d7..011453fa 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -1372,7 +1372,9 @@ cAudioManager::ProcessPlayersVehicleEngine(cVehicleParams& params, CAutomobile *
#else
if (!SampleManager.InitialiseChannel(CHANNEL_PLAYER_VEHICLE_ENGINE, soundOffset + SFX_CAR_ACCEL_1, SFX_BANK_0))
return;
+#endif
SampleManager.SetChannelLoopCount(CHANNEL_PLAYER_VEHICLE_ENGINE, 1);
+#ifndef GTA_PS2
SampleManager.SetChannelLoopPoints(CHANNEL_PLAYER_VEHICLE_ENGINE, 0, -1);
#endif
}