mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 20:10:00 +00:00
Finish audio code
This commit is contained in:
parent
e2fb0578b5
commit
3b9f1255af
File diff suppressed because it is too large
Load diff
|
@ -1,13 +1,14 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "DMAudio.h"
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#include "DMAudio.h"
|
||||||
|
|
||||||
#include "AudioCollision.h"
|
#include "AudioCollision.h"
|
||||||
#include "PoliceRadio.h"
|
#include "PoliceRadio.h"
|
||||||
|
|
||||||
enum eScriptSounds : int16
|
enum eScriptSounds : int16 {
|
||||||
{
|
|
||||||
SCRIPT_SOUND_0 = 0,
|
SCRIPT_SOUND_0 = 0,
|
||||||
SCRIPT_SOUND_1 = 1,
|
SCRIPT_SOUND_1 = 1,
|
||||||
SCRIPT_SOUND_2 = 2,
|
SCRIPT_SOUND_2 = 2,
|
||||||
|
@ -142,28 +143,28 @@ public:
|
||||||
int32 m_nSampleIndex;
|
int32 m_nSampleIndex;
|
||||||
uint8 m_bBankIndex;
|
uint8 m_bBankIndex;
|
||||||
bool m_bIs2D;
|
bool m_bIs2D;
|
||||||
uint8 field_14;
|
uint8 field_14; // unused
|
||||||
uint8 field_15;
|
uint8 field_15; // unused
|
||||||
int32 m_nReleasingVolumeModificator;
|
int32 m_nReleasingVolumeModificator;
|
||||||
int32 m_nFrequency;
|
int32 m_nFrequency;
|
||||||
uint8 m_bVolume;
|
uint8 m_bVolume;
|
||||||
uint8 field_25;
|
uint8 field_25; // unused
|
||||||
uint8 field_26;
|
uint8 field_26; // unused
|
||||||
uint8 field_27;
|
uint8 field_27; // unused
|
||||||
float m_fDistance;
|
float m_fDistance;
|
||||||
int32 m_nLoopCount;
|
int32 m_nLoopCount;
|
||||||
int32 m_nLoopStart;
|
int32 m_nLoopStart;
|
||||||
int32 m_nLoopEnd;
|
int32 m_nLoopEnd;
|
||||||
uint8 m_bEmittingVolume;
|
uint8 m_bEmittingVolume;
|
||||||
uint8 field_45;
|
uint8 field_45; // unused
|
||||||
uint8 field_46;
|
uint8 field_46; // unused
|
||||||
uint8 field_47;
|
uint8 field_47; // unused
|
||||||
float m_fSpeedMultiplier;
|
float m_fSpeedMultiplier;
|
||||||
float m_fSoundIntensity;
|
float m_fSoundIntensity;
|
||||||
bool m_bReleasingSoundFlag;
|
bool m_bReleasingSoundFlag;
|
||||||
uint8 field_57;
|
uint8 field_57; // unused
|
||||||
uint8 field_58;
|
uint8 field_58; // unused
|
||||||
uint8 field_59;
|
uint8 field_59; // unused
|
||||||
CVector m_vecPos;
|
CVector m_vecPos;
|
||||||
bool m_bReverbFlag;
|
bool m_bReverbFlag;
|
||||||
uint8 m_bLoopsRemaining;
|
uint8 m_bLoopsRemaining;
|
||||||
|
@ -172,13 +173,13 @@ public:
|
||||||
int32 m_nReleasingVolumeDivider;
|
int32 m_nReleasingVolumeDivider;
|
||||||
bool m_bIsProcessed;
|
bool m_bIsProcessed;
|
||||||
bool m_bLoopEnded;
|
bool m_bLoopEnded;
|
||||||
uint8 field_82;
|
uint8 field_82; // unused
|
||||||
uint8 field_83;
|
uint8 field_83; // unused
|
||||||
int32 calculatedVolume;
|
int32 m_nCalculatedVolume;
|
||||||
int8 m_nVolumeChange;
|
int8 m_nVolumeChange;
|
||||||
uint8 field_89;
|
uint8 field_89; // unused
|
||||||
uint8 field_90;
|
uint8 field_90; // unused
|
||||||
uint8 field_91;
|
uint8 field_91; // unused
|
||||||
|
|
||||||
// no methods
|
// no methods
|
||||||
};
|
};
|
||||||
|
@ -214,8 +215,8 @@ public:
|
||||||
CVector m_vecPos;
|
CVector m_vecPos;
|
||||||
float m_fDistance;
|
float m_fDistance;
|
||||||
uint8 m_bVolume;
|
uint8 m_bVolume;
|
||||||
int8 field_25; // allocated time?
|
int8 m_nProcess;
|
||||||
uint8 gap_26[2];
|
uint8 gap_26[2]; // unused
|
||||||
|
|
||||||
// no methods
|
// no methods
|
||||||
};
|
};
|
||||||
|
@ -229,11 +230,11 @@ public:
|
||||||
uint8 m_nIndexMap[NUM_PED_COMMENTS_BANKS][NUM_PED_COMMENTS_SLOTS];
|
uint8 m_nIndexMap[NUM_PED_COMMENTS_BANKS][NUM_PED_COMMENTS_SLOTS];
|
||||||
uint8 m_nCommentsInBank[NUM_PED_COMMENTS_BANKS];
|
uint8 m_nCommentsInBank[NUM_PED_COMMENTS_BANKS];
|
||||||
uint8 m_nActiveBank;
|
uint8 m_nActiveBank;
|
||||||
uint8 gap_1163[1];
|
uint8 gap_1163[1]; // unused
|
||||||
|
|
||||||
// reversed all methods
|
// reversed all methods
|
||||||
void Add(tPedComment *com); /// ok
|
void Add(tPedComment *com);
|
||||||
void Process(); /// ok
|
void Process();
|
||||||
};
|
};
|
||||||
|
|
||||||
static_assert(sizeof(cPedComments) == 1164, "cPedComments: error");
|
static_assert(sizeof(cPedComments) == 1164, "cPedComments: error");
|
||||||
|
@ -245,17 +246,17 @@ class cMissionAudio
|
||||||
public:
|
public:
|
||||||
CVector m_vecPos;
|
CVector m_vecPos;
|
||||||
bool m_bPredefinedProperties;
|
bool m_bPredefinedProperties;
|
||||||
uint8 gap_13[3];
|
uint8 gap_13[3]; // unused
|
||||||
int m_nSampleIndex;
|
int m_nSampleIndex;
|
||||||
uint8 m_bLoadingStatus;
|
uint8 m_bLoadingStatus;
|
||||||
uint8 m_bPlayStatus;
|
uint8 m_bPlayStatus;
|
||||||
uint8 field_22;
|
uint8 field_22; // todo find a name
|
||||||
uint8 field_23;
|
uint8 field_23; // unused
|
||||||
int32 m_nMissionAudioCounter;
|
int32 m_nMissionAudioCounter;
|
||||||
bool m_bIsPlayed;
|
bool m_bIsPlayed;
|
||||||
uint8 field_29;
|
uint8 field_29; // unused
|
||||||
uint8 field_30;
|
uint8 field_30; // unused
|
||||||
uint8 field_31;
|
uint8 field_31; // unused
|
||||||
// no methods
|
// no methods
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -334,6 +335,9 @@ public:
|
||||||
uint8 field_19195; // unused
|
uint8 field_19195; // unused
|
||||||
uint32 m_FrameCounter;
|
uint32 m_FrameCounter;
|
||||||
|
|
||||||
|
cAudioManager();
|
||||||
|
~cAudioManager();
|
||||||
|
|
||||||
// getters
|
// getters
|
||||||
uint32 GetFrameCounter() const { return m_FrameCounter; }
|
uint32 GetFrameCounter() const { return m_FrameCounter; }
|
||||||
float GetReflectionsDistance(int32 idx) const { return m_afReflectionsDistances[idx]; }
|
float GetReflectionsDistance(int32 idx) const { return m_afReflectionsDistances[idx]; }
|
||||||
|
@ -341,29 +345,29 @@ public:
|
||||||
bool IsMissionAudioPlaying() const { return m_sMissionAudio.m_bPlayStatus == 1; }
|
bool IsMissionAudioPlaying() const { return m_sMissionAudio.m_bPlayStatus == 1; }
|
||||||
|
|
||||||
// "Should" be in alphabetic order, except "getXTalkSfx"
|
// "Should" be in alphabetic order, except "getXTalkSfx"
|
||||||
void AddDetailsToRequestedOrderList(uint8 sample); /// ok (check once more)
|
void AddDetailsToRequestedOrderList(uint8 sample);
|
||||||
void AddPlayerCarSample(uint8 emittingVolume, int32 freq, uint32 sample, uint8 unk1,
|
void AddPlayerCarSample(uint8 emittingVolume, int32 freq, uint32 sample, uint8 unk1,
|
||||||
uint8 counter, bool notLooping); /// ok
|
uint8 counter, bool notLooping);
|
||||||
void AddReflectionsToRequestedQueue(); /// ok (check value)
|
void AddReflectionsToRequestedQueue();
|
||||||
void AddReleasingSounds(); /// ok (check)
|
void AddReleasingSounds();
|
||||||
void AddSampleToRequestedQueue(); /// ok
|
void AddSampleToRequestedQueue();
|
||||||
void AgeCrimes(); /// ok
|
void AgeCrimes();
|
||||||
|
|
||||||
void CalculateDistance(bool &condition, float dist); /// ok
|
void CalculateDistance(bool &condition, float dist);
|
||||||
bool CheckForAnAudioFileOnCD() const; /// ok
|
bool CheckForAnAudioFileOnCD() const;
|
||||||
void ClearActiveSamples(); /// ok
|
void ClearActiveSamples();
|
||||||
void ClearMissionAudio(); /// ok
|
void ClearMissionAudio();
|
||||||
void ClearRequestedQueue(); /// ok
|
void ClearRequestedQueue();
|
||||||
int32 ComputeDopplerEffectedFrequency(uint32 oldFreq, float position1, float position2,
|
int32 ComputeDopplerEffectedFrequency(uint32 oldFreq, float position1, float position2,
|
||||||
float speedMultiplier) const; /// ok
|
float speedMultiplier) const;
|
||||||
int32 ComputePan(float, CVector *); /// ok
|
int32 ComputePan(float, CVector *);
|
||||||
uint8 ComputeVolume(uint8 emittingVolume, float soundIntensity, float distance) const; /// ok
|
uint8 ComputeVolume(uint8 emittingVolume, float soundIntensity, float distance) const;
|
||||||
int32 CreateEntity(int32 type, void *entity); /// ok
|
int32 CreateEntity(int32 type, void *entity);
|
||||||
|
|
||||||
void DestroyAllGameCreatedEntities(); /// ok
|
void DestroyAllGameCreatedEntities();
|
||||||
void DestroyEntity(int32 id); /// ok
|
void DestroyEntity(int32 id);
|
||||||
void DoJumboVolOffset() const; /// ok
|
void DoJumboVolOffset() const;
|
||||||
void DoPoliceRadioCrackle(); /// ok
|
void DoPoliceRadioCrackle();
|
||||||
|
|
||||||
// functions returning talk sfx,
|
// functions returning talk sfx,
|
||||||
// order from GetPedCommentSfx
|
// order from GetPedCommentSfx
|
||||||
|
@ -445,154 +449,151 @@ public:
|
||||||
uint32 GetGenericFemaleTalkSfx(int16 sound);
|
uint32 GetGenericFemaleTalkSfx(int16 sound);
|
||||||
// end of functions returning talk sfx
|
// end of functions returning talk sfx
|
||||||
|
|
||||||
void GenerateIntegerRandomNumberTable(); /// ok
|
void GenerateIntegerRandomNumberTable();
|
||||||
char *Get3DProviderName(uint8 id) const;
|
char *Get3DProviderName(uint8 id) const;
|
||||||
uint8 GetCDAudioDriveLetter() const;
|
uint8 GetCDAudioDriveLetter() const;
|
||||||
int8 GetCurrent3DProviderIndex() const; /// ok
|
int8 GetCurrent3DProviderIndex() const;
|
||||||
float GetCollisionLoopingRatio(uint32 a, uint32 b, float c) const; // not used
|
float GetCollisionLoopingRatio(uint32 a, uint32 b, float c) const; // not used
|
||||||
float GetCollisionOneShotRatio(int32 a, float b) const; /// ok
|
float GetCollisionOneShotRatio(int32 a, float b) const;
|
||||||
float GetCollisionRatio(float a, float b, float c, float d) const; /// ok
|
float GetCollisionRatio(float a, float b, float c, float d) const;
|
||||||
float GetDistanceSquared(CVector *v) const; /// ok
|
float GetDistanceSquared(CVector *v) const;
|
||||||
int32 GetJumboTaxiFreq() const; /// ok
|
int32 GetJumboTaxiFreq() const;
|
||||||
bool GetMissionAudioLoadingStatus() const; /// ok
|
bool GetMissionAudioLoadingStatus() const;
|
||||||
int8 GetMissionScriptPoliceAudioPlayingStatus() const; /// ok
|
int8 GetMissionScriptPoliceAudioPlayingStatus() const;
|
||||||
uint8 GetNum3DProvidersAvailable() const;
|
uint8 GetNum3DProvidersAvailable() const;
|
||||||
int32 GetPedCommentSfx(CPed *ped, int32 sound);
|
int32 GetPedCommentSfx(CPed *ped, int32 sound);
|
||||||
void GetPhrase(uint32 *phrase, uint32 *prevPhrase, uint32 sample, uint32 maxOffset) const;
|
void GetPhrase(uint32 *phrase, uint32 *prevPhrase, uint32 sample, uint32 maxOffset) const;
|
||||||
float GetVehicleDriveWheelSkidValue(uint8 wheel, CAutomobile *automobile,
|
float GetVehicleDriveWheelSkidValue(uint8 wheel, CAutomobile *automobile,
|
||||||
cTransmission *transmission,
|
cTransmission *transmission, float velocityChange);
|
||||||
float velocityChange); /// ok
|
|
||||||
float GetVehicleNonDriveWheelSkidValue(uint8 wheel, CAutomobile *automobile,
|
float GetVehicleNonDriveWheelSkidValue(uint8 wheel, CAutomobile *automobile,
|
||||||
cTransmission *transmission,
|
cTransmission *transmission, float velocityChange);
|
||||||
float velocityChange); /// ok
|
|
||||||
|
|
||||||
bool HasAirBrakes(int32 model) const; /// ok
|
bool HasAirBrakes(int32 model) const;
|
||||||
|
|
||||||
void Initialise(); /// ok
|
void Initialise();
|
||||||
void InitialisePoliceRadio(); /// ok
|
void InitialisePoliceRadio();
|
||||||
void InitialisePoliceRadioZones(); /// ok
|
void InitialisePoliceRadioZones();
|
||||||
void InterrogateAudioEntities(); /// ok
|
void InterrogateAudioEntities();
|
||||||
bool IsAudioInitialised() const; /// ok
|
bool IsAudioInitialised() const;
|
||||||
bool IsMissionAudioSampleFinished(); /// ok
|
bool IsMissionAudioSampleFinished();
|
||||||
bool IsMP3RadioChannelAvailable() const;
|
bool IsMP3RadioChannelAvailable() const;
|
||||||
|
|
||||||
bool MissionScriptAudioUsesPoliceChannel(int32 soundMission) const; /// ok
|
bool MissionScriptAudioUsesPoliceChannel(int32 soundMission) const;
|
||||||
|
|
||||||
void PlayLoadedMissionAudio(); /// ok
|
void PlayLoadedMissionAudio();
|
||||||
void PlayOneShot(int32 index, int16 sound, float vol); /// ok
|
void PlayOneShot(int32 index, int16 sound, float vol);
|
||||||
void PlaySuspectLastSeen(float x, float y, float z); /// ok
|
void PlaySuspectLastSeen(float x, float y, float z);
|
||||||
void PlayerJustGotInCar() const; /// ok
|
void PlayerJustGotInCar() const;
|
||||||
void PlayerJustLeftCar() const; /// ok
|
void PlayerJustLeftCar() const;
|
||||||
void PostInitialiseGameSpecificSetup(); /// ok
|
void PostInitialiseGameSpecificSetup();
|
||||||
void PostTerminateGameSpecificShutdown(); /// ok
|
void PostTerminateGameSpecificShutdown();
|
||||||
void PreInitialiseGameSpecificSetup() const; /// ok
|
void PreInitialiseGameSpecificSetup() const;
|
||||||
void PreloadMissionAudio(const char *name); /// ok
|
void PreloadMissionAudio(const char *name);
|
||||||
void PreTerminateGameSpecificShutdown(); /// ok
|
void PreTerminateGameSpecificShutdown();
|
||||||
/// processX - main logic of adding new sounds
|
/// processX - main logic of adding new sounds
|
||||||
void ProcessActiveQueues(); /// ok
|
void ProcessActiveQueues();
|
||||||
bool ProcessAirBrakes(cVehicleParams *params); /// ok
|
bool ProcessAirBrakes(cVehicleParams *params);
|
||||||
void ProcessAirportScriptObject(uint8 sound); /// ok
|
void ProcessAirportScriptObject(uint8 sound);
|
||||||
bool ProcessBoatEngine(cVehicleParams *params); /// ok
|
bool ProcessBoatEngine(cVehicleParams *params);
|
||||||
bool ProcessBoatMovingOverWater(cVehicleParams *params); /// ok
|
bool ProcessBoatMovingOverWater(cVehicleParams *params);
|
||||||
void ProcessBridge(); /// ok
|
void ProcessBridge();
|
||||||
void ProcessBridgeMotor(); /// ok
|
void ProcessBridgeMotor();
|
||||||
void ProcessBridgeOneShots(); /// ok
|
void ProcessBridgeOneShots();
|
||||||
void ProcessBridgeWarning(); /// ok
|
void ProcessBridgeWarning();
|
||||||
bool ProcessCarBombTick(cVehicleParams *params); /// ok
|
bool ProcessCarBombTick(cVehicleParams *params);
|
||||||
void ProcessCesna(cVehicleParams *params); /// ok
|
void ProcessCesna(cVehicleParams *params);
|
||||||
void ProcessCinemaScriptObject(uint8 sound); /// ok
|
void ProcessCinemaScriptObject(uint8 sound);
|
||||||
void ProcessCrane(); /// ok
|
void ProcessCrane();
|
||||||
void ProcessDocksScriptObject(uint8 sound); /// ok
|
void ProcessDocksScriptObject(uint8 sound);
|
||||||
bool ProcessEngineDamage(cVehicleParams *params); /// ok
|
bool ProcessEngineDamage(cVehicleParams *params);
|
||||||
void ProcessEntity(int32 sound); /// ok
|
void ProcessEntity(int32 sound);
|
||||||
void ProcessExplosions(int32 explosion); /// ok
|
void ProcessExplosions(int32 explosion);
|
||||||
void ProcessFireHydrant(); /// ok
|
void ProcessFireHydrant();
|
||||||
void ProcessFires(int32 entity); /// ok
|
void ProcessFires(int32 entity);
|
||||||
void ProcessFrontEnd(); /// ok
|
void ProcessFrontEnd();
|
||||||
void ProcessGarages(); /// ok
|
void ProcessGarages();
|
||||||
bool ProcessHelicopter(cVehicleParams *params); /// ok
|
bool ProcessHelicopter(cVehicleParams *params);
|
||||||
void ProcessHomeScriptObject(uint8 sound); /// ok
|
void ProcessHomeScriptObject(uint8 sound);
|
||||||
void ProcessJumbo(cVehicleParams *); /// ok
|
void ProcessJumbo(cVehicleParams *);
|
||||||
void ProcessJumboAccel(CPlane *plane); /// ok
|
void ProcessJumboAccel(CPlane *plane);
|
||||||
void ProcessJumboDecel(CPlane *plane); /// ok
|
void ProcessJumboDecel(CPlane *plane);
|
||||||
void ProcessJumboFlying(); /// ok
|
void ProcessJumboFlying();
|
||||||
void ProcessJumboLanding(CPlane *plane); /// ok
|
void ProcessJumboLanding(CPlane *plane);
|
||||||
void ProcessJumboTakeOff(CPlane *plane); /// ok
|
void ProcessJumboTakeOff(CPlane *plane);
|
||||||
void ProcessJumboTaxi(); /// ok
|
void ProcessJumboTaxi();
|
||||||
void ProcessLaunderetteScriptObject(uint8 sound); /// ok
|
void ProcessLaunderetteScriptObject(uint8 sound);
|
||||||
void ProcessLoopingScriptObject(uint8 sound); /// ok
|
void ProcessLoopingScriptObject(uint8 sound);
|
||||||
void ProcessMissionAudio(); /// ok
|
void ProcessMissionAudio();
|
||||||
void ProcessModelCarEngine(cVehicleParams *params); /// ok
|
void ProcessModelCarEngine(cVehicleParams *params);
|
||||||
void ProcessOneShotScriptObject(uint8 sound); /// ok
|
void ProcessOneShotScriptObject(uint8 sound);
|
||||||
void ProcessPed(CPhysical *ped); /// ok
|
void ProcessPed(CPhysical *ped);
|
||||||
void ProcessPedHeadphones(cPedParams *params); /// ok
|
void ProcessPedHeadphones(cPedParams *params);
|
||||||
void ProcessPedOneShots(cPedParams *params); // todo later (weird)
|
void ProcessPedOneShots(cPedParams *params);
|
||||||
void ProcessPhysical(int32 id); /// ok
|
void ProcessPhysical(int32 id);
|
||||||
void ProcessPlane(cVehicleParams *params); /// ok
|
void ProcessPlane(cVehicleParams *params);
|
||||||
void ProcessPlayersVehicleEngine(cVehicleParams *params,
|
void ProcessPlayersVehicleEngine(cVehicleParams *params, CAutomobile *automobile);
|
||||||
CAutomobile *automobile); /// ok
|
void ProcessPoliceCellBeatingScriptObject(uint8 sound);
|
||||||
void ProcessPoliceCellBeatingScriptObject(uint8 sound); /// ok
|
void ProcessPornCinema(uint8 sound);
|
||||||
void ProcessPornCinema(uint8 sound); /// ok
|
void ProcessProjectiles();
|
||||||
void ProcessProjectiles(); /// ok
|
void ProcessRainOnVehicle(cVehicleParams *params);
|
||||||
void ProcessRainOnVehicle(cVehicleParams *params); /// ok
|
void ProcessReverb() const;
|
||||||
void ProcessReverb() const; /// ok
|
bool ProcessReverseGear(cVehicleParams *params);
|
||||||
bool ProcessReverseGear(cVehicleParams *params); /// ok
|
void ProcessSawMillScriptObject(uint8 sound);
|
||||||
void ProcessSawMillScriptObject(uint8 sound); /// ok
|
void ProcessScriptObject(int32 id);
|
||||||
void ProcessScriptObject(int32 id); /// ok
|
void ProcessShopScriptObject(uint8 sound);
|
||||||
void ProcessShopScriptObject(uint8 sound); /// ok
|
void ProcessSpecial();
|
||||||
void ProcessSpecial(); /// ok
|
bool ProcessTrainNoise(cVehicleParams *params);
|
||||||
bool ProcessTrainNoise(cVehicleParams *params); /// ok
|
void ProcessVehicle(CVehicle *vehicle);
|
||||||
void ProcessVehicle(CVehicle *vehicle); /// ok
|
bool ProcessVehicleDoors(cVehicleParams *params);
|
||||||
bool ProcessVehicleDoors(cVehicleParams *params); /// ok
|
void ProcessVehicleEngine(cVehicleParams *params);
|
||||||
void ProcessVehicleEngine(cVehicleParams *params); /// ok
|
void ProcessVehicleHorn(cVehicleParams *params);
|
||||||
void ProcessVehicleHorn(cVehicleParams *params); /// ok
|
void ProcessVehicleOneShots(cVehicleParams *params);
|
||||||
void ProcessVehicleOneShots(void *); // todo
|
bool ProcessVehicleReverseWarning(cVehicleParams *params);
|
||||||
bool ProcessVehicleReverseWarning(cVehicleParams *params); /// ok
|
bool ProcessVehicleRoadNoise(cVehicleParams *params);
|
||||||
bool ProcessVehicleRoadNoise(cVehicleParams *params); /// ok
|
void ProcessVehicleSirenOrAlarm(cVehicleParams *params);
|
||||||
void ProcessVehicleSirenOrAlarm(cVehicleParams *params); /// ok
|
void ProcessVehicleSkidding(cVehicleParams *params);
|
||||||
void ProcessVehicleSkidding(cVehicleParams *params); /// ok
|
void ProcessWaterCannon(int32);
|
||||||
void ProcessWaterCannon(int32); /// ok
|
void ProcessWeather(int32 id);
|
||||||
void ProcessWeather(int32 id); /// ok
|
bool ProcessWetRoadNoise(cVehicleParams *params);
|
||||||
bool ProcessWetRoadNoise(cVehicleParams *params); /// ok
|
void ProcessWorkShopScriptObject(uint8 sound);
|
||||||
void ProcessWorkShopScriptObject(uint8 sound); /// ok
|
|
||||||
|
|
||||||
int32 RandomDisplacement(uint32 seed) const;
|
int32 RandomDisplacement(uint32 seed) const;
|
||||||
void ReacquireDigitalHandle() const;
|
void ReacquireDigitalHandle() const;
|
||||||
void ReleaseDigitalHandle() const;
|
void ReleaseDigitalHandle() const;
|
||||||
void ReportCollision(CEntity *entity1, CEntity *entity2, uint8 surface1, uint8 surface2, float collisionPower,
|
void ReportCollision(CEntity *entity1, CEntity *entity2, uint8 surface1, uint8 surface2,
|
||||||
float intensity2); /// ok
|
float collisionPower, float intensity2);
|
||||||
void ReportCrime(int32 crime, const CVector *pos); /// ok
|
void ReportCrime(int32 crime, const CVector *pos);
|
||||||
void ResetAudioLogicTimers(uint32 timer); /// ok
|
void ResetAudioLogicTimers(uint32 timer);
|
||||||
void ResetPoliceRadio(); /// ok
|
void ResetPoliceRadio();
|
||||||
void ResetTimers(uint32 time); /// ok
|
void ResetTimers(uint32 time);
|
||||||
|
|
||||||
void Service(); /// ok
|
void Service();
|
||||||
void ServiceCollisions(); /// ok
|
void ServiceCollisions();
|
||||||
void ServicePoliceRadio(); /// ok
|
void ServicePoliceRadio();
|
||||||
void ServicePoliceRadioChannel(int32 wantedLevel); /// ok
|
void ServicePoliceRadioChannel(int32 wantedLevel);
|
||||||
void ServiceSoundEffects(); /// ok
|
void ServiceSoundEffects();
|
||||||
int8 SetCurrent3DProvider(uint8 which); /// ok
|
int8 SetCurrent3DProvider(uint8 which);
|
||||||
void SetDynamicAcousticModelingStatus(bool status);
|
void SetDynamicAcousticModelingStatus(bool status);
|
||||||
void SetEffectsFadeVolume(uint8 volume) const;
|
void SetEffectsFadeVolume(uint8 volume) const;
|
||||||
void SetEffectsMasterVolume(uint8 volume) const;
|
void SetEffectsMasterVolume(uint8 volume) const;
|
||||||
void SetEntityStatus(int32 id, uint8 status);
|
void SetEntityStatus(int32 id, uint8 status);
|
||||||
uint32 SetLoopingCollisionRequestedSfxFreqAndGetVol(cAudioCollision *audioCollision); /// ok
|
uint32 SetLoopingCollisionRequestedSfxFreqAndGetVol(cAudioCollision *audioCollision);
|
||||||
void SetMissionAudioLocation(float x, float y, float z);
|
void SetMissionAudioLocation(float x, float y, float z);
|
||||||
void SetMissionScriptPoliceAudio(int32 sfx) const;
|
void SetMissionScriptPoliceAudio(int32 sfx) const;
|
||||||
void SetMonoMode(uint8); // todo (mobile)
|
void SetMonoMode(uint8); // todo (mobile)
|
||||||
void SetMusicFadeVolume(uint8 volume) const;
|
void SetMusicFadeVolume(uint8 volume) const;
|
||||||
void SetMusicMasterVolume(uint8 volume) const;
|
void SetMusicMasterVolume(uint8 volume) const;
|
||||||
void SetSpeakerConfig(int32 conf) const;
|
void SetSpeakerConfig(int32 conf) const;
|
||||||
void SetUpLoopingCollisionSound(cAudioCollision *col, uint8 counter); /// ok
|
void SetUpLoopingCollisionSound(cAudioCollision *col, uint8 counter);
|
||||||
void SetUpOneShotCollisionSound(cAudioCollision *col); /// ok
|
void SetUpOneShotCollisionSound(cAudioCollision *col);
|
||||||
bool SetupCrimeReport(); /// ok
|
bool SetupCrimeReport();
|
||||||
bool SetupJumboEngineSound(uint8 vol, int32 freq); /// ok
|
bool SetupJumboEngineSound(uint8 vol, int32 freq);
|
||||||
bool SetupJumboFlySound(uint8 emittingVol); /// ok
|
bool SetupJumboFlySound(uint8 emittingVol);
|
||||||
bool SetupJumboRumbleSound(uint8 emittingVol); /// ok
|
bool SetupJumboRumbleSound(uint8 emittingVol);
|
||||||
bool SetupJumboTaxiSound(uint8 vol); /// ok
|
bool SetupJumboTaxiSound(uint8 vol);
|
||||||
bool SetupJumboWhineSound(uint8 emittingVol, int32 freq); /// ok
|
bool SetupJumboWhineSound(uint8 emittingVol, int32 freq);
|
||||||
void SetupPedComments(cPedParams *params, uint32 sound); /// ok
|
void SetupPedComments(cPedParams *params, uint32 sound);
|
||||||
void SetupSuspectLastSeenReport(); /// ok
|
void SetupSuspectLastSeenReport();
|
||||||
|
|
||||||
void Terminate();
|
void Terminate();
|
||||||
void TranslateEntity(CVector *v1, CVector *v2) const;
|
void TranslateEntity(CVector *v1, CVector *v2) const;
|
||||||
|
@ -604,9 +605,8 @@ public:
|
||||||
bool UsesSirenSwitching(int32 model) const;
|
bool UsesSirenSwitching(int32 model) const;
|
||||||
|
|
||||||
// only used in pc
|
// only used in pc
|
||||||
void AdjustSamplesVolume(); /// ok
|
void AdjustSamplesVolume();
|
||||||
uint8 ComputeEmittingVolume(uint8 emittingVolume, float intensity,
|
uint8 ComputeEmittingVolume(uint8 emittingVolume, float intensity, float dist);
|
||||||
float dist); /// ok
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static_assert(sizeof(cAudioManager) == 19220, "cAudioManager: error");
|
static_assert(sizeof(cAudioManager) == 19220, "cAudioManager: error");
|
||||||
|
|
Loading…
Reference in a new issue