Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#include "OpenSHC/Audio/MSS/SoundSystem.func.hpp"

#include <iostream>

namespace OpenSHC {
namespace Audio {
namespace MSS {

// FUNCTION: STRONGHOLDCRUSADER 0x00479F30
void SoundSystem::deactivateSoundFromMenuFuncUnk()
{
if (!this->waveOutOpenUnk_0x8) {
return;
}

for (int i = 0; i < 5; ++i) {
unsigned int const copy = *((unsigned int*)&this->streamFlagsUnkAndLoopCount_0x34[i]) & 0x7fffffff;
this->streamFlagsUnkAndLoopCount_0x34[i] = *((UnkSoundFlagsAndLoopCount*)&copy);
MACRO_CALL_MEMBER(SoundSystem_Func::endSoundStream, this)(i);
}

for (int i = 0; i < 31; ++i) {
AIL_end_sample(this->sample_0x190[i]);
this->sampleSoundIndex_0x20c[i + 1] = 0;
}

for (int i = 1; i < this->loadedSoundsCountAndIndex_0x316c; ++i) {
this->soundFileCurrSampleNum_0x28c[i] = -1;
}
this->soundActiveUnk_0x0 = 0;
}

}
}
}
2 changes: 1 addition & 1 deletion status/addresses-SHC-3BB0A8C1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10891,7 +10891,7 @@ SHC_3BB0A8C1_0x00479CF0 | 100.0% | Reimplemented
SHC_3BB0A8C1_0x00479D90 | 100.0% | Reimplemented
SHC_3BB0A8C1_0x00479DF0 | 0.0% | Pending
SHC_3BB0A8C1_0x00479E60 | 100.0% | Reimplemented
SHC_3BB0A8C1_0x00479F30 | 0.0% | Pending
SHC_3BB0A8C1_0x00479F30 | 100.0% | Reimplemented
SHC_3BB0A8C1_0x00479FC0 | 0.0% | Pending
SHC_3BB0A8C1_0x0047A080 | 0.0% | Pending
SHC_3BB0A8C1_0x0047A130 | 0.0% | Pending
Expand Down