summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-09-09 18:37:44 +0200
committerSergeanur <s.anureev@yandex.ua>2020-09-09 18:37:44 +0200
commit4f4b1f914540465a77aa8daf7e837042a96b3e31 (patch)
tree56fe4ae390e58e8a0d8f39ce555a382bdf635bbe /src/audio/AudioManager.cpp
parentMore stinger fix (diff)
downloadre3-4f4b1f914540465a77aa8daf7e837042a96b3e31.tar
re3-4f4b1f914540465a77aa8daf7e837042a96b3e31.tar.gz
re3-4f4b1f914540465a77aa8daf7e837042a96b3e31.tar.bz2
re3-4f4b1f914540465a77aa8daf7e837042a96b3e31.tar.lz
re3-4f4b1f914540465a77aa8daf7e837042a96b3e31.tar.xz
re3-4f4b1f914540465a77aa8daf7e837042a96b3e31.tar.zst
re3-4f4b1f914540465a77aa8daf7e837042a96b3e31.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 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++)