summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-07 17:31:32 +0200
committeraap <aap@papnet.eu>2020-05-07 17:31:32 +0200
commit3ae10c93acbf223675e032dc4b1b1193d2bc41fc (patch)
tree64998f82fb659ae343ebf6b8da75350a0a8de10f /src/audio/AudioManager.h
parentgot rid of superfluous enum; update librw (diff)
parentFix looping collision sound (diff)
downloadre3-3ae10c93acbf223675e032dc4b1b1193d2bc41fc.tar
re3-3ae10c93acbf223675e032dc4b1b1193d2bc41fc.tar.gz
re3-3ae10c93acbf223675e032dc4b1b1193d2bc41fc.tar.bz2
re3-3ae10c93acbf223675e032dc4b1b1193d2bc41fc.tar.lz
re3-3ae10c93acbf223675e032dc4b1b1193d2bc41fc.tar.xz
re3-3ae10c93acbf223675e032dc4b1b1193d2bc41fc.tar.zst
re3-3ae10c93acbf223675e032dc4b1b1193d2bc41fc.zip
Diffstat (limited to 'src/audio/AudioManager.h')
-rw-r--r--src/audio/AudioManager.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index ccef42ff..0d0c5d91 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -317,7 +317,7 @@ public:
float GetCollisionLoopingRatio(uint32 a, uint32 b, float c) const; // not used
float GetCollisionOneShotRatio(int32 a, float b) const;
float GetCollisionRatio(float a, float b, float c, float d) const;
- float GetDistanceSquared(CVector *v) const;
+ float GetDistanceSquared(const CVector &v) const;
int32 GetJumboTaxiFreq() const;
bool GetMissionAudioLoadingStatus() const;
int8 GetMissionScriptPoliceAudioPlayingStatus() const;
@@ -438,15 +438,15 @@ public:
void SetEffectsFadeVolume(uint8 volume) const;
void SetEffectsMasterVolume(uint8 volume) const;
void SetEntityStatus(int32 id, uint8 status);
- uint32 SetLoopingCollisionRequestedSfxFreqAndGetVol(cAudioCollision *audioCollision);
+ uint32 SetLoopingCollisionRequestedSfxFreqAndGetVol(const cAudioCollision &audioCollision);
void SetMissionAudioLocation(float x, float y, float z);
void SetMissionScriptPoliceAudio(int32 sfx) const;
void SetMonoMode(uint8); // todo (mobile)
void SetMusicFadeVolume(uint8 volume) const;
void SetMusicMasterVolume(uint8 volume) const;
void SetSpeakerConfig(int32 conf) const;
- void SetUpLoopingCollisionSound(cAudioCollision *col, uint8 counter);
- void SetUpOneShotCollisionSound(cAudioCollision *col);
+ void SetUpLoopingCollisionSound(const cAudioCollision &col, uint8 counter);
+ void SetUpOneShotCollisionSound(const cAudioCollision &col);
bool SetupCrimeReport();
bool SetupJumboEngineSound(uint8 vol, int32 freq);
bool SetupJumboFlySound(uint8 emittingVol);
@@ -468,6 +468,8 @@ public:
// only used in pc
void AdjustSamplesVolume();
uint8 ComputeEmittingVolume(uint8 emittingVolume, float intensity, float dist);
+
+ void DebugShit();
};
//dstatic_assert(sizeof(cAudioManager) == 19220, "cAudioManager: error");