summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-24 15:25:51 +0300
committerSergeanur <s.anureev@yandex.ua>2021-08-24 15:25:51 +0300
commitd4a2113a8ab6e31e281e770161a0ddfa3c4e6eb8 (patch)
treeb989f8ef92315bb0fbf8e2318181123d12ea2a04
parenta5ec7a45dbc0b2c884644632aacf693d4595ef2e (diff)
Audio: fix PS2 ifdefs
-rw-r--r--src/audio/AudioLogic.cpp2
-rw-r--r--src/audio/PolRadio.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/audio/AudioLogic.cpp b/src/audio/AudioLogic.cpp
index 163a34e7..f3dc1bc9 100644
--- a/src/audio/AudioLogic.cpp
+++ b/src/audio/AudioLogic.cpp
@@ -2305,7 +2305,9 @@ cAudioManager::ProcessPlayersVehicleEngine(cVehicleParams& params, CVehicle* veh
#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
}
diff --git a/src/audio/PolRadio.cpp b/src/audio/PolRadio.cpp
index 49b8368c..a88af72a 100644
--- a/src/audio/PolRadio.cpp
+++ b/src/audio/PolRadio.cpp
@@ -243,8 +243,8 @@ cAudioManager::ServicePoliceRadioChannel(uint8 wantedLevel)
#endif
SampleManager.SetChannelVolume(CHANNEL_POLICE_RADIO, 100);
SampleManager.SetChannelPan(CHANNEL_POLICE_RADIO, 63);
-#ifndef GTA_PS2
SampleManager.SetChannelLoopCount(CHANNEL_POLICE_RADIO, 1);
+#ifndef GTA_PS2
SampleManager.SetChannelLoopPoints(CHANNEL_POLICE_RADIO, 0, -1);
#endif
SampleManager.StartChannel(CHANNEL_POLICE_RADIO);