summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-09-02 18:22:50 +0200
committerSergeanur <s.anureev@yandex.ua>2021-09-02 18:22:50 +0200
commita16fcd8d6a79e433c1c6e73d540f1bbe27e14164 (patch)
tree99b17cfb4a55ad82391431451c9660f313ea3e61 /src/audio/AudioManager.h
parentAudio: small refactoring (diff)
downloadre3-a16fcd8d6a79e433c1c6e73d540f1bbe27e14164.tar
re3-a16fcd8d6a79e433c1c6e73d540f1bbe27e14164.tar.gz
re3-a16fcd8d6a79e433c1c6e73d540f1bbe27e14164.tar.bz2
re3-a16fcd8d6a79e433c1c6e73d540f1bbe27e14164.tar.lz
re3-a16fcd8d6a79e433c1c6e73d540f1bbe27e14164.tar.xz
re3-a16fcd8d6a79e433c1c6e73d540f1bbe27e14164.tar.zst
re3-a16fcd8d6a79e433c1c6e73d540f1bbe27e14164.zip
Diffstat (limited to 'src/audio/AudioManager.h')
-rw-r--r--src/audio/AudioManager.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/audio/AudioManager.h b/src/audio/AudioManager.h
index 1312826b..49edcfec 100644
--- a/src/audio/AudioManager.h
+++ b/src/audio/AudioManager.h
@@ -88,7 +88,7 @@ public:
CVector m_vecPos;
float m_fDistance;
uint8 m_nVolume;
- int8 m_nProcess;
+ int8 m_nLoadingTimeout; // how many iterations we gonna wait until dropping the sample if it's still not loaded (only useful on PS2)
#if defined(EXTERNAL_3D_SOUND) && defined(FIX_BUGS)
uint8 m_nEmittingVolume;
#endif
@@ -112,7 +112,7 @@ public:
{
for (int i = 0; i < NUM_PED_COMMENTS_SLOTS; i++)
for (int j = 0; j < NUM_SOUND_QUEUES; j++) {
- m_aPedCommentQueue[j][i].m_nProcess = -1;
+ m_aPedCommentQueue[j][i].m_nLoadingTimeout = -1;
m_aPedCommentOrderList[j][i] = NUM_PED_COMMENTS_SLOTS;
}
@@ -218,7 +218,7 @@ enum {
#endif
enum PLAY_STATUS { PLAY_STATUS_STOPPED = 0, PLAY_STATUS_PLAYING, PLAY_STATUS_FINISHED };
-enum LOADING_STATUS { LOADING_STATUS_NOT_LOADED = 0, LOADING_STATUS_LOADED, LOADING_STATUS_FAILED };
+enum LOADING_STATUS { LOADING_STATUS_NOT_LOADED = 0, LOADING_STATUS_LOADED, LOADING_STATUS_LOADING };
class cAudioManager
{