summaryrefslogtreecommitdiffstats
path: root/src/vehicles
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-08-29 16:32:36 +0200
committerSergeanur <s.anureev@yandex.ua>2021-08-29 16:32:36 +0200
commita404689e505f67bd14a3102726f459f414d0379f (patch)
treef297ab6dbcd3fa8b7bc76423a82845a2e70cc3c9 /src/vehicles
parentFix tabs after merge (diff)
downloadre3-a404689e505f67bd14a3102726f459f414d0379f.tar
re3-a404689e505f67bd14a3102726f459f414d0379f.tar.gz
re3-a404689e505f67bd14a3102726f459f414d0379f.tar.bz2
re3-a404689e505f67bd14a3102726f459f414d0379f.tar.lz
re3-a404689e505f67bd14a3102726f459f414d0379f.tar.xz
re3-a404689e505f67bd14a3102726f459f414d0379f.tar.zst
re3-a404689e505f67bd14a3102726f459f414d0379f.zip
Diffstat (limited to 'src/vehicles')
-rw-r--r--src/vehicles/Ferry.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vehicles/Ferry.cpp b/src/vehicles/Ferry.cpp
index 89a0de9f..339c2819 100644
--- a/src/vehicles/Ferry.cpp
+++ b/src/vehicles/Ferry.cpp
@@ -14,6 +14,7 @@
#include "TempColModels.h"
#include "WaterLevel.h"
#include "World.h"
+#include "sampman.h"
CFerryInst* CFerry::mspInst;
@@ -706,7 +707,7 @@ void CFerry::OpenDoor(void)
m_bUseFrontDoor = true;
if (fDistToCar4 < fDistToCar1)
m_bUseFrontDoor = false;
- // AudioManager.DirectlyEnqueueSample(0xb8,0,0,1,0x5622,0x7f,0x14,0); // TODO
+ AudioManager.DirectlyEnqueueSample(SFX_GATE_START_CLU, SFX_BANK_0, 0, 1, 22050, 127, 20);
}
void CFerry::CloseDoor(void)
@@ -714,7 +715,7 @@ void CFerry::CloseDoor(void)
printf("closing the ferry door\n");
m_nDoorState = FERRY_DOOR_CLOSING;
m_nDoorTimer = CTimer::GetTimeInMilliseconds() + 10000;
- // AudioManager.DirectlyEnqueueSample(0xb8, 0, 0, 1, 0x5622, 0x7f, 0x14, 0); // TODO
+ AudioManager.DirectlyEnqueueSample(SFX_GATE_START_CLU, SFX_BANK_0, 0, 1, 22050, 127, 20); // shouldn't this be SFX_GATE_STOP_CLU?
}
bool CFerry::IsDoorOpen(void)
@@ -798,7 +799,7 @@ void CFerry::PlayArrivedHorn(void)
float fDistToCamera = (GetPosition() - TheCamera.GetPosition()).Magnitude();
if (fDistToCamera < 200.0f) {
uint8 volume = (200.0f - fDistToCamera) / 200.0f * 127;
- // AudioManager.DirectlyEnqueueSample(0x32, 0, 0, 1, 18000, volume, 0x32, 0); // TODO
+ AudioManager.DirectlyEnqueueSample(SFX_CAR_HORN_TRUCK, SFX_BANK_0, 0, 1, 18000, volume, 50);
}
}