summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-09-13 02:10:14 +0200
committerGitHub <noreply@github.com>2020-09-13 02:10:14 +0200
commit25a22cc6f25c01c7fc777bc41f632e6237ac8426 (patch)
tree4323944c27801c403fcea94a4fee9913570b172e /src/audio/AudioManager.cpp
parentMerge pull request #701 from erorcun/miami (diff)
parentAdd missing file (diff)
downloadre3-25a22cc6f25c01c7fc777bc41f632e6237ac8426.tar
re3-25a22cc6f25c01c7fc777bc41f632e6237ac8426.tar.gz
re3-25a22cc6f25c01c7fc777bc41f632e6237ac8426.tar.bz2
re3-25a22cc6f25c01c7fc777bc41f632e6237ac8426.tar.lz
re3-25a22cc6f25c01c7fc777bc41f632e6237ac8426.tar.xz
re3-25a22cc6f25c01c7fc777bc41f632e6237ac8426.tar.zst
re3-25a22cc6f25c01c7fc777bc41f632e6237ac8426.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 5b0b4907..f5cd9361 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -217,6 +217,12 @@ cAudioManager::PlayOneShot(int32 index, int16 sound, float vol)
}
void
+cAudioManager::SetMP3BoostVolume(uint8 volume) const
+{
+ SampleManager.SetMP3BoostVolume(volume);
+}
+
+void
cAudioManager::SetEffectsMasterVolume(uint8 volume) const
{
SampleManager.SetEffectsMasterVolume(volume);
@@ -337,6 +343,15 @@ cAudioManager::GetCurrent3DProviderIndex() const
}
int8
+cAudioManager::AutoDetect3DProviders() const
+{
+ if (m_bIsInitialised)
+ return SampleManager.AutoDetect3DProviders();
+
+ return -1;
+}
+
+int8
cAudioManager::SetCurrent3DProvider(uint8 which)
{
if (!m_bIsInitialised)
@@ -420,6 +435,7 @@ cAudioManager::IsAudioInitialised() const
void
cAudioManager::ServiceSoundEffects()
{
+ field_5554++;
m_bFifthFrameFlag = (m_FrameCounter++ % 5) == 0;
if (m_nUserPause && !m_nPreviousUserPause) {
for (int32 i = 0; i < allChannels; i++)