summaryrefslogtreecommitdiffstats
path: root/src/audio
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-05-05 13:48:35 +0200
committerSergeanur <s.anureev@yandex.ua>2020-05-05 13:48:35 +0200
commite9b334d7bf270682f83c5c18b2d85a25703c1a2d (patch)
treebaa7ed00dedd2b09f99a2bb4958d2837ef6a8da6 /src/audio
parentSetPosition, final part (diff)
downloadre3-e9b334d7bf270682f83c5c18b2d85a25703c1a2d.tar
re3-e9b334d7bf270682f83c5c18b2d85a25703c1a2d.tar.gz
re3-e9b334d7bf270682f83c5c18b2d85a25703c1a2d.tar.bz2
re3-e9b334d7bf270682f83c5c18b2d85a25703c1a2d.tar.lz
re3-e9b334d7bf270682f83c5c18b2d85a25703c1a2d.tar.xz
re3-e9b334d7bf270682f83c5c18b2d85a25703c1a2d.tar.zst
re3-e9b334d7bf270682f83c5c18b2d85a25703c1a2d.zip
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/AudioManager.cpp22
-rw-r--r--src/audio/MusicManager.cpp2
-rw-r--r--src/audio/PoliceRadio.cpp4
3 files changed, 14 insertions, 14 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 523092fd..0b98098d 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -2987,7 +2987,7 @@ cAudioManager::GetPedCommentSfx(CPed *ped, int32 sound)
if (ped->IsPlayer())
return GetPlayerTalkSfx(sound);
- switch (ped->m_modelIndex) {
+ switch (ped->GetModelIndex()) {
case MI_COP:
return GetCopTalkSfx(sound);
case MI_SWAT:
@@ -3035,13 +3035,13 @@ cAudioManager::GetPedCommentSfx(CPed *ped, int32 sound)
case MI_SPECIAL02:
case MI_SPECIAL03:
case MI_SPECIAL04:
- return GetSpecialCharacterTalkSfx(ped->m_modelIndex, sound);
+ return GetSpecialCharacterTalkSfx(ped->GetModelIndex(), sound);
case MI_MALE02:
return GetMaleNo2TalkSfx(sound);
case MI_MALE03:
case MI_P_MAN1:
case MI_P_MAN2:
- return GetBlackProjectMaleTalkSfx(sound, ped->m_modelIndex);
+ return GetBlackProjectMaleTalkSfx(sound, ped->GetModelIndex());
case MI_FATMALE01:
return GetWhiteFatMaleTalkSfx(sound);
case MI_FATMALE02:
@@ -3094,12 +3094,12 @@ cAudioManager::GetPedCommentSfx(CPed *ped, int32 sound)
return GetBlackWorkerMaleTalkSfx(sound);
case MI_B_MAN1:
case MI_B_MAN3:
- return GetBusinessMaleYoungTalkSfx(sound, ped->m_modelIndex);
+ return GetBusinessMaleYoungTalkSfx(sound, ped->GetModelIndex());
case MI_B_MAN2:
return GetBusinessMaleOldTalkSfx(sound);
case MI_B_WOM1:
case MI_B_WOM2:
- return GetWhiteBusinessFemaleTalkSfx(sound, ped->m_modelIndex);
+ return GetWhiteBusinessFemaleTalkSfx(sound, ped->GetModelIndex());
case MI_B_WOM3:
return GetBlackBusinessFemaleTalkSfx(sound);
case MI_MOD_MAN:
@@ -3112,7 +3112,7 @@ cAudioManager::GetPedCommentSfx(CPed *ped, int32 sound)
return GetStewardFemaleTalkSfx(sound);
case MI_FAN_MAN1:
case MI_FAN_MAN2:
- return GetFanMaleTalkSfx(sound, ped->m_modelIndex);
+ return GetFanMaleTalkSfx(sound, ped->GetModelIndex());
case MI_FAN_WOM:
return GetFanFemaleTalkSfx(sound);
case MI_HOS_MAN:
@@ -3126,7 +3126,7 @@ cAudioManager::GetPedCommentSfx(CPed *ped, int32 sound)
case MI_SHOPPER1:
case MI_SHOPPER2:
case MI_SHOPPER3:
- return GetShopperFemaleTalkSfx(sound, ped->m_modelIndex);
+ return GetShopperFemaleTalkSfx(sound, ped->GetModelIndex());
case MI_STUD_MAN:
return GetStudentMaleTalkSfx(sound);
case MI_STUD_WOM:
@@ -6264,7 +6264,7 @@ cAudioManager::ProcessPed(CPhysical *ped)
// params.m_bDistanceCalculated = false;
params.m_pPed = (CPed *)ped;
params.m_fDistance = GetDistanceSquared(&m_sQueueSample.m_vecPos);
- if (ped->m_modelIndex == MI_FATMALE02)
+ if (ped->GetModelIndex() == MI_FATMALE02)
ProcessPedHeadphones(&params);
ProcessPedOneShots(&params);
}
@@ -7090,7 +7090,7 @@ cAudioManager::ProcessPlane(cVehicleParams *params)
ProcessCesna(params);
break;
default:
- debug("Plane Model Id is %d\n, ", params->m_pVehicle->m_modelIndex);
+ debug("Plane Model Id is %d\n, ", params->m_pVehicle->GetModelIndex());
break;
}
}
@@ -7991,7 +7991,7 @@ cAudioManager::ProcessVehicle(CVehicle *veh)
if (handling)
params.m_pTransmission = &handling->Transmission;
- params.m_nIndex = veh->m_modelIndex - 90;
+ params.m_nIndex = veh->GetModelIndex() - 90;
if (params.m_pVehicle->GetStatus() == STATUS_SIMPLE)
velChange = params.m_pVehicle->AutoPilot.m_fMaxTrafficSpeed * 0.02f;
else
@@ -8272,7 +8272,7 @@ cAudioManager::ProcessVehicleHorn(cVehicleParams *params)
if (params->m_fDistance < SQR(SOUND_INTENSITY)) {
automobile = (CAutomobile *)params->m_pVehicle;
- if ((!automobile->m_bSirenOrAlarm || !UsesSirenSwitching(params->m_nIndex)) && automobile->m_modelIndex != MI_MRWHOOP) {
+ if ((!automobile->m_bSirenOrAlarm || !UsesSirenSwitching(params->m_nIndex)) && automobile->GetModelIndex() != MI_MRWHOOP) {
if (automobile->m_nCarHornTimer) {
if (params->m_pVehicle->GetStatus() != STATUS_PLAYER) {
automobile->m_nCarHornTimer = Min(44, automobile->m_nCarHornTimer);
diff --git a/src/audio/MusicManager.cpp b/src/audio/MusicManager.cpp
index 5f6dc1c3..fd02691e 100644
--- a/src/audio/MusicManager.cpp
+++ b/src/audio/MusicManager.cpp
@@ -58,7 +58,7 @@ cMusicManager::PlayerInCar()
if (FindPlayerVehicle()->GetStatus() == STATUS_WRECKED)
return false;
- switch(FindPlayerVehicle()->m_modelIndex) {
+ switch (FindPlayerVehicle()->GetModelIndex()) {
case MI_FIRETRUCK:
case MI_AMBULAN:
case MI_MRWHOOP:
diff --git a/src/audio/PoliceRadio.cpp b/src/audio/PoliceRadio.cpp
index 31b6c7b6..5470a1af 100644
--- a/src/audio/PoliceRadio.cpp
+++ b/src/audio/PoliceRadio.cpp
@@ -538,7 +538,7 @@ cAudioManager::SetupSuspectLastSeenReport()
main_color = gCarColourTable[color1][1];
color_pre_modifier = gCarColourTable[color1][0];
color_post_modifier = gCarColourTable[color1][2];
- switch (veh->m_modelIndex) {
+ switch (veh->GetModelIndex()) {
#ifdef FIX_BUGS
case MI_COLUMB:
main_color = SFX_POLICE_RADIO_BLUE;
@@ -637,7 +637,7 @@ cAudioManager::SetupSuspectLastSeenReport()
break;
default:
- debug("\n *** UNKNOWN CAR MODEL INDEX %d *** ", veh->m_modelIndex);
+ debug("\n *** UNKNOWN CAR MODEL INDEX %d *** ", veh->GetModelIndex());
return;
}
m_sPoliceRadioQueue.Add(m_anRandomTable[4] % 3 + SFX_POLICE_RADIO_MESSAGE_NOISE_1);