summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-07-28 23:40:32 +0200
committerSergeanur <s.anureev@yandex.ua>2021-07-28 23:40:32 +0200
commit6cea1de9e6062195f19b7fe5f1beeafe1432376c (patch)
tree92469601242fbdf6a6658c0d3b71501d485986f9 /src/audio/AudioManager.cpp
parentFix comments (diff)
downloadre3-6cea1de9e6062195f19b7fe5f1beeafe1432376c.tar
re3-6cea1de9e6062195f19b7fe5f1beeafe1432376c.tar.gz
re3-6cea1de9e6062195f19b7fe5f1beeafe1432376c.tar.bz2
re3-6cea1de9e6062195f19b7fe5f1beeafe1432376c.tar.lz
re3-6cea1de9e6062195f19b7fe5f1beeafe1432376c.tar.xz
re3-6cea1de9e6062195f19b7fe5f1beeafe1432376c.tar.zst
re3-6cea1de9e6062195f19b7fe5f1beeafe1432376c.zip
Diffstat (limited to '')
-rw-r--r--src/audio/AudioManager.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index 4f703c82..22415e76 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -160,6 +160,14 @@ cAudioManager::DestroyEntity(int32 id)
}
}
+bool8
+cAudioManager::GetEntityStatus(int32 id)
+{
+ if (m_bIsInitialised && id >= 0 && id < NUM_AUDIOENTITIES && m_asAudioEntities[id].m_bIsUsed)
+ return m_asAudioEntities[id].m_bStatus;
+ return FALSE;
+}
+
void
cAudioManager::SetEntityStatus(int32 id, bool8 status)
{
@@ -167,6 +175,14 @@ cAudioManager::SetEntityStatus(int32 id, bool8 status)
m_asAudioEntities[id].m_bStatus = status;
}
+void *
+cAudioManager::GetEntityPointer(int32 id)
+{
+ if (m_bIsInitialised && id >= 0 && id < NUM_AUDIOENTITIES && m_asAudioEntities[id].m_bIsUsed)
+ return m_asAudioEntities[id].m_pEntity;
+ return NULL;
+}
+
void
cAudioManager::PlayOneShot(int32 index, uint16 sound, float vol)
{