Skip to content

Commit 07477ad

Browse files
authored
Merge pull request #80 from sourcehold/reimpl/SHC_3BB0A8C1_0x00479DF0
reimplement: SHC_3BB0A8C1_0x00479DF0 100%
2 parents c5ac990 + 742d5f2 commit 07477ad

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#include "OpenSHC/Audio/MSS/SoundSystem.func.hpp"
2+
3+
#include "OpenSHC/string-literals.hpp"
4+
5+
namespace OpenSHC {
6+
namespace Audio {
7+
namespace MSS {
8+
9+
// FUNCTION: STRONGHOLDCRUSADER 0x00479DF0
10+
void SoundSystem::playSound(int soundIndex)
11+
{
12+
if (!this->waveOutOpenUnk_0x8 || !this->soundActiveUnk_0x0
13+
|| this->soundFileCurrSampleNum_0x28c[soundIndex] < 0) {
14+
return;
15+
}
16+
17+
AIL_set_named_sample_file(this->sample_0x190[this->soundFileCurrSampleNum_0x28c[soundIndex] + -1],
18+
s__wav_005a6cc4, this->soundFileDataPointerArray_0x122c[soundIndex],
19+
this->soundFileSizes_0x21cc[soundIndex], 0);
20+
AIL_start_sample(this->sample_0x190[this->soundFileCurrSampleNum_0x28c[soundIndex] + -1]);
21+
}
22+
23+
}
24+
}
25+
}

status/addresses-SHC-3BB0A8C1.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10889,7 +10889,7 @@ SHC_3BB0A8C1_0x00479C20 | 0.0% | Pending
1088910889
SHC_3BB0A8C1_0x00479C80 | 0.0% | Pending
1089010890
SHC_3BB0A8C1_0x00479CF0 | 100.0% | Reimplemented
1089110891
SHC_3BB0A8C1_0x00479D90 | 100.0% | Reimplemented
10892-
SHC_3BB0A8C1_0x00479DF0 | 0.0% | Pending
10892+
SHC_3BB0A8C1_0x00479DF0 | 100.0% | Reimplemented
1089310893
SHC_3BB0A8C1_0x00479E60 | 100.0% | Reimplemented
1089410894
SHC_3BB0A8C1_0x00479F30 | 100.0% | Reimplemented
1089510895
SHC_3BB0A8C1_0x00479FC0 | 0.0% | Pending

0 commit comments

Comments
 (0)