summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-08-03 15:02:09 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-08-03 15:02:09 +0200
commita3bdaccafbf4e916597fae9df71e3b7052be1647 (patch)
tree37a42c0b9ecdf75b8d4a524dbf76a10e9b8fe984 /src/audio/AudioManager.h
parentRunningScript, part 4, plus some fixes (diff)
parentMerge pull request #178 from Fire-Head/master (diff)
downloadre3-a3bdaccafbf4e916597fae9df71e3b7052be1647.tar
re3-a3bdaccafbf4e916597fae9df71e3b7052be1647.tar.gz
re3-a3bdaccafbf4e916597fae9df71e3b7052be1647.tar.bz2
re3-a3bdaccafbf4e916597fae9df71e3b7052be1647.tar.lz
re3-a3bdaccafbf4e916597fae9df71e3b7052be1647.tar.xz
re3-a3bdaccafbf4e916597fae9df71e3b7052be1647.tar.zst
re3-a3bdaccafbf4e916597fae9df71e3b7052be1647.zip
Diffstat (limited to 'src/audio/AudioManager.h')
-rw-r--r--src/audio/AudioManager.h34
1 files changed, 29 insertions, 5 deletions
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index 4a59721b..f592d3f3 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -186,6 +186,24 @@ struct cAudioScriptObject {
static_assert(sizeof(cAudioScriptObject) == 0x14, "cAudioScriptObject: error");
+enum
+{
+ /*
+ REFLECTION_YMAX = 0, top
+ REFLECTION_YMIN = 1, bottom
+ REFLECTION_XMIN = 2, left
+ REFLECTION_XMAX = 3, right
+ REFLECTION_ZMAX = 4,
+ */
+
+ REFLECTION_TOP = 0,
+ REFLECTION_BOTTOM,
+ REFLECTION_LEFT,
+ REFLECTION_RIGHT,
+ REFLECTION_UP,
+ MAX_REFLECTIONS,
+};
+
class cAudioManager
{
public:
@@ -233,7 +251,13 @@ public:
uint8 m_bUserPause;
uint8 m_bPreviousUserPause;
uint8 field_19195;
- int32 m_nTimeOfRecentCrime;
+ uint32 m_FrameCounter;
+
+ inline uint32 GetFrameCounter(void) { return m_FrameCounter; }
+ float GetReflectionsDistance(int32 idx) { return m_afReflectionsDistances[idx]; }
+ int32 GetRandomTabe(int32 idx) { return m_anRandomTable[idx]; }
+
+ //
void AddDetailsToRequestedOrderList(uint8 sample); /// ok
void AddPlayerCarSample(uint8 emittingVolume, int32 freq, uint32 sample, uint8 unk1,
@@ -242,7 +266,7 @@ public:
void AddReleasingSounds(); // todo (difficult)
void AddSampleToRequestedQueue(); /// ok
void AgeCrimes(); // todo
- int8 AutoDetect3DProviders(); /// ok
+ int8 GetCurrent3DProviderIndex(); /// ok
void CalculateDistance(bool *ptr, float dist); /// ok
bool CheckForAnAudioFileOnCD(); /// ok
@@ -282,8 +306,8 @@ public:
void SetEffectsMasterVolume(uint8 volume);
void SetMusicMasterVolume(uint8 volume);
- void SetEffectsFadeVol(uint8 volume);
- void SetMusicFadeVol(uint8 volume);
+ void SetEffectsFadeVolume(uint8 volume);
+ void SetMusicFadeVolume(uint8 volume);
void SetSpeakerConfig(int32 conf);
@@ -323,7 +347,7 @@ public:
int32 RandomDisplacement(uint32 seed);
void ReleaseDigitalHandle();
- void RequireDigitalHandle();
+ void ReacquireDigitalHandle();
void SetDynamicAcousticModelingStatus(bool status);
bool IsAudioInitialised() const;