diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-09-26 12:28:33 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-09-26 12:28:33 +0200 |
commit | eefb0c817f1c86cb24d3a730da848e1f98277948 (patch) | |
tree | d4872bafd56e69213a6e973ac539c01942042a01 /src/audio/AudioManager.cpp | |
parent | Merge remote-tracking branch 'upstream/master' (diff) | |
parent | Fix MASTER build with glfw (diff) | |
download | re3-eefb0c817f1c86cb24d3a730da848e1f98277948.tar re3-eefb0c817f1c86cb24d3a730da848e1f98277948.tar.gz re3-eefb0c817f1c86cb24d3a730da848e1f98277948.tar.bz2 re3-eefb0c817f1c86cb24d3a730da848e1f98277948.tar.lz re3-eefb0c817f1c86cb24d3a730da848e1f98277948.tar.xz re3-eefb0c817f1c86cb24d3a730da848e1f98277948.tar.zst re3-eefb0c817f1c86cb24d3a730da848e1f98277948.zip |
Diffstat (limited to 'src/audio/AudioManager.cpp')
-rw-r--r-- | src/audio/AudioManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio/AudioManager.cpp b/src/audio/AudioManager.cpp index 58483602..028df85e 100644 --- a/src/audio/AudioManager.cpp +++ b/src/audio/AudioManager.cpp @@ -86,7 +86,7 @@ cAudioManager::Terminate() m_sAudioScriptObjectManager.m_nScriptObjectEntityTotal = 0; PreTerminateGameSpecificShutdown(); - for (uint32 i = 0; i < MAX_SAMPLEBANKS; i++) { + for (uint32 i = 0; i < MAX_SFX_BANKS; i++) { if (SampleManager.IsSampleBankLoaded(i)) SampleManager.UnloadSampleBank(i); } @@ -917,7 +917,7 @@ cAudioManager::ClearActiveSamples() m_asActiveSamples[i].m_nEntityIndex = AEHANDLE_NONE; m_asActiveSamples[i].m_nCounter = 0; m_asActiveSamples[i].m_nSampleIndex = NO_SAMPLE; - m_asActiveSamples[i].m_nBankIndex = SAMPLEBANK_INVALID; + m_asActiveSamples[i].m_nBankIndex = INVALID_SFX_BANK; m_asActiveSamples[i].m_bIs2D = false; m_asActiveSamples[i].m_nReleasingVolumeModificator = 5; m_asActiveSamples[i].m_nFrequency = 0; |