summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-09-13 11:06:44 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-09-13 11:06:44 +0200
commit084efb1f141b92a2dce902faebdefb617f01a7d0 (patch)
treeb3aed77b8284c894a5546f1645a51ec0e7a9e883 /src/audio/AudioManager.cpp
parentwall climb cheat from LCS (diff)
parentMerge pull request #702 from Sergeanur/VC/MusicManager (diff)
downloadre3-084efb1f141b92a2dce902faebdefb617f01a7d0.tar
re3-084efb1f141b92a2dce902faebdefb617f01a7d0.tar.gz
re3-084efb1f141b92a2dce902faebdefb617f01a7d0.tar.bz2
re3-084efb1f141b92a2dce902faebdefb617f01a7d0.tar.lz
re3-084efb1f141b92a2dce902faebdefb617f01a7d0.tar.xz
re3-084efb1f141b92a2dce902faebdefb617f01a7d0.tar.zst
re3-084efb1f141b92a2dce902faebdefb617f01a7d0.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++)