summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-01-13 18:36:30 +0100
committerSergeanur <s.anureev@yandex.ua>2020-01-13 19:01:23 +0100
commit045c63806736ca2572b72b0aaa008be556ee5695 (patch)
tree00e1eb368eb1b5ffebd3753101d91ff036242ff4
parentFix molotov (diff)
downloadre3-045c63806736ca2572b72b0aaa008be556ee5695.tar
re3-045c63806736ca2572b72b0aaa008be556ee5695.tar.gz
re3-045c63806736ca2572b72b0aaa008be556ee5695.tar.bz2
re3-045c63806736ca2572b72b0aaa008be556ee5695.tar.lz
re3-045c63806736ca2572b72b0aaa008be556ee5695.tar.xz
re3-045c63806736ca2572b72b0aaa008be556ee5695.tar.zst
re3-045c63806736ca2572b72b0aaa008be556ee5695.zip
-rw-r--r--src/audio/AudioManager.cpp4
-rw-r--r--src/audio/AudioManager.h16
2 files changed, 10 insertions, 10 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index d825fb89..a27508ce 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -427,7 +427,7 @@ cAudioManager::AddReleasingSounds()
int8 queue = m_bActiveSampleQueue == 0;
for(int32 i = 0; i < m_bSampleRequestQueuesStatus[queue]; i++) {
- tActiveSample &sample = m_asSamples[queue][m_abSampleQueueIndexTable[queue][i]];
+ tSound &sample = m_asSamples[queue][m_abSampleQueueIndexTable[queue][i]];
if (sample.m_bLoopEnded) continue;
toProcess[i] = false;
@@ -9438,7 +9438,7 @@ void
cAudioManager::AdjustSamplesVolume()
{
for(int i = 0; i < m_bSampleRequestQueuesStatus[m_bActiveSampleQueue]; i++) {
- tActiveSample* pSample = &m_asSamples[m_bActiveSampleQueue][m_abSampleQueueIndexTable[m_bActiveSampleQueue][i] + 1];
+ tSound* pSample = &m_asSamples[m_bActiveSampleQueue][m_abSampleQueueIndexTable[m_bActiveSampleQueue][i] + 1];
if(!pSample->m_bBankIndex) // all non-speech sounds on PC
pSample->m_bEmittingVolume = ComputeEmittingVolume(
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index 7df6dcbe..75ba8076 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -131,7 +131,7 @@ enum eScriptSounds : int16
SCRIPT_SOUND_GUNSHELL_DROP_SOFT = 123,
};
-class tActiveSample
+class tSound
{
public:
int32 m_nEntityIndex;
@@ -180,7 +180,7 @@ public:
// no methods
};
-static_assert(sizeof(tActiveSample) == 92, "tActiveSample: error");
+static_assert(sizeof(tSound) == 92, "tSound: error");
enum eAudioType : int32
{
@@ -363,14 +363,14 @@ enum AudioEntityHandle {
AEHANDLE_ERROR_BADAUDIOTYPE = -1,
};
-struct Crime {
+struct cAMCrime {
int32 type;
CVector position;
uint16 timer;
uint16 gap;
};
-static_assert(sizeof(Crime) == 20, "Crime: error ");
+static_assert(sizeof(cAMCrime) == 20, "cAMCrime: error ");
class cAudioManager
{
@@ -389,13 +389,13 @@ public:
uint8 field_14;
uint8 field_15;
int32 m_nTimer;
- tActiveSample m_sQueueSample;
+ tSound m_sQueueSample;
bool m_bActiveSampleQueue;
uint8 gap_109[3];
- tActiveSample m_asSamples[2][27];
+ tSound m_asSamples[2][27];
uint8 m_abSampleQueueIndexTable[2][27];
uint8 m_bSampleRequestQueuesStatus[2];
- tActiveSample m_asActiveSamples[27];
+ tSound m_asActiveSamples[27];
tAudioEntity m_asAudioEntities[200];
int32 m_anAudioEntityIndices[200];
int32 m_nAudioEntitiesTotal;
@@ -412,7 +412,7 @@ public:
uint8 policeChannelTimerSeconds;
uint8 policeChannelCounterSeconds;
uint8 gap30;
- Crime crimes[10];
+ cAMCrime crimes[10];
int32 m_nFrontEndEntity;
int32 m_nCollisionEntity;
cAudioCollisionManager m_sCollisionManager;