summaryrefslogtreecommitdiffstats
path: root/src/audio/AudioManager.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-23 18:12:20 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-23 18:12:20 +0200
commit05ddc80ea22cee3c97f274b1d5c3d3d1d5cafdbd (patch)
treed1b9a842f2d767a0d05b1a23c3a0a4746d2b5e70 /src/audio/AudioManager.cpp
parentMerge remote-tracking branch 'upstream/master' (diff)
parentremoved fix that made no sense (diff)
downloadre3-05ddc80ea22cee3c97f274b1d5c3d3d1d5cafdbd.tar
re3-05ddc80ea22cee3c97f274b1d5c3d3d1d5cafdbd.tar.gz
re3-05ddc80ea22cee3c97f274b1d5c3d3d1d5cafdbd.tar.bz2
re3-05ddc80ea22cee3c97f274b1d5c3d3d1d5cafdbd.tar.lz
re3-05ddc80ea22cee3c97f274b1d5c3d3d1d5cafdbd.tar.xz
re3-05ddc80ea22cee3c97f274b1d5c3d3d1d5cafdbd.tar.zst
re3-05ddc80ea22cee3c97f274b1d5c3d3d1d5cafdbd.zip
Diffstat (limited to 'src/audio/AudioManager.cpp')
-rw-r--r--src/audio/AudioManager.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp
index f836f1c4..0c4b007f 100644
--- a/src/audio/AudioManager.cpp
+++ b/src/audio/AudioManager.cpp
@@ -9548,6 +9548,9 @@ cAudioManager::ResetTimers(uint32 time)
SampleManager.SetEffectsFadeVolume(0);
SampleManager.SetMusicFadeVolume(0);
MusicManager.ResetMusicAfterReload();
+#ifdef OPENAL
+ SampleManager.Service();
+#endif
}
}
@@ -9603,6 +9606,9 @@ cAudioManager::ServiceSoundEffects()
ProcessMissionAudio();
AdjustSamplesVolume();
ProcessActiveQueues();
+#ifdef OPENAL
+ SampleManager.Service();
+#endif
for(int32 i = 0; i < m_sAudioScriptObjectManager.m_nScriptObjectEntityTotal; ++i) {
cAudioScriptObject *object =
(cAudioScriptObject *)m_asAudioEntities[m_sAudioScriptObjectManager.m_anScriptObjectEntityIndices[i]]
@@ -9983,7 +9989,7 @@ cAudioManager::Terminate()
m_sAudioScriptObjectManager.m_nScriptObjectEntityTotal = 0;
PreTerminateGameSpecificShutdown();
- for(uint32 i = 0; i < DIGITALCHANNELS; i++) {
+ for(uint32 i = 0; i < MAX_SAMPLEBANKS; i++) {
if(SampleManager.IsSampleBankLoaded(i)) SampleManager.UnloadSampleBank(i);
}