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:43:04 +0200
commitcce97588feb5be51b05b157fb0ff845d3ce88066 (patch)
treee53f174344b30eedf7314026f27f917f9208748c /src/audio/AudioManager.cpp
parentcAudioManager declaration reordering (diff)
downloadre3-cce97588feb5be51b05b157fb0ff845d3ce88066.tar
re3-cce97588feb5be51b05b157fb0ff845d3ce88066.tar.gz
re3-cce97588feb5be51b05b157fb0ff845d3ce88066.tar.bz2
re3-cce97588feb5be51b05b157fb0ff845d3ce88066.tar.lz
re3-cce97588feb5be51b05b157fb0ff845d3ce88066.tar.xz
re3-cce97588feb5be51b05b157fb0ff845d3ce88066.tar.zst
re3-cce97588feb5be51b05b157fb0ff845d3ce88066.zip
Diffstat (limited to 'src/audio/AudioManager.cpp')
-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 e4f8a023..75af289c 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)
{