diff options
author | Roman Masanin <36927roma@gmail.com> | 2020-09-21 00:55:22 +0200 |
---|---|---|
committer | Roman Masanin <36927roma@gmail.com> | 2020-09-21 00:55:22 +0200 |
commit | 5b9e4c47802058da5b3841aed2ae175d51487b8b (patch) | |
tree | 81374e0bed1001e5970be39ac59a332ca2be7043 /src/audio/AudioManager.cpp | |
parent | just more cleanup... (diff) | |
download | re3-5b9e4c47802058da5b3841aed2ae175d51487b8b.tar re3-5b9e4c47802058da5b3841aed2ae175d51487b8b.tar.gz re3-5b9e4c47802058da5b3841aed2ae175d51487b8b.tar.bz2 re3-5b9e4c47802058da5b3841aed2ae175d51487b8b.tar.lz re3-5b9e4c47802058da5b3841aed2ae175d51487b8b.tar.xz re3-5b9e4c47802058da5b3841aed2ae175d51487b8b.tar.zst re3-5b9e4c47802058da5b3841aed2ae175d51487b8b.zip |
Diffstat (limited to '')
-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 f5cd9361..c0a70e31 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); } @@ -934,7 +934,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; |