From 9ecca45bf356c001737d671739f8091c395b6fce Mon Sep 17 00:00:00 2001 From: Sergeanur Date: Tue, 24 Aug 2021 15:24:28 +0300 Subject: Audio: fix PS2 ifdefs --- src/audio/AudioLogic.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/audio/AudioLogic.cpp') 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 } -- cgit v1.2.3