We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6b6e39 commit fd41d7bCopy full SHA for fd41d7b
1 file changed
src/OpenSHC/Audio/mss/SoundSystem/deactivateSoundFromMenuFuncUnk.cpp
@@ -19,14 +19,10 @@ namespace Audio {
19
MACRO_CALL_MEMBER(SoundSystem_Func::endSoundStream, this)(i);
20
}
21
22
- int* piVar1 = this->sampleSoundIndex_0x20c + 1;
23
- unsigned int iVar3 = 32;
24
- do {
25
- AIL_end_sample((HSAMPLE)piVar1[-0x20]);
26
- *piVar1 = 0;
27
- piVar1 = piVar1 + 1;
28
- iVar3 = iVar3 + -1;
29
- } while (iVar3 != 1);
+ for (int i = 0; i < 31; ++i) {
+ AIL_end_sample(this->sample_0x190[i]);
+ this->sampleSoundIndex_0x20c[i + 1] = 0;
+ }
30
31
for (int i = 1; i < this->loadedSoundsCountAndIndex_0x316c; ++i) {
32
this->soundFileCurrSampleNum_0x28c[i] = -1;
0 commit comments