mirror of https://github.com/zeldaret/tp.git
113 lines
3.9 KiB
C++
113 lines
3.9 KiB
C++
//
|
|
// Generated By: dol2asm
|
|
// Translation Unit: JAUAudioArcLoader
|
|
//
|
|
|
|
#include "JSystem/JAudio2/JAUAudioArcLoader.h"
|
|
#include "JSystem/JAudio2/JAISeMgr.h"
|
|
#include "JSystem/JAudio2/JAUSectionHeap.h"
|
|
#include "JSystem/JUtility/JUTAssert.h"
|
|
|
|
//
|
|
// Declarations:
|
|
//
|
|
|
|
/* 802A4740-802A478C 29F080 004C+00 0/0 1/1 0/0 .text __ct__17JAUAudioArcLoaderFP10JAUSection */
|
|
JAUAudioArcLoader::JAUAudioArcLoader(JAUSection* section) {
|
|
//JUT_ASSERT(13, section->isOpen());
|
|
//JUT_ASSERT(14, section->isBuilding());
|
|
mSection = section;
|
|
}
|
|
|
|
/* 802A478C-802A47AC 29F0CC 0020+00 0/0 1/1 0/0 .text load__17JAUAudioArcLoaderFPCv */
|
|
bool JAUAudioArcLoader::load(void const* param_0) {
|
|
return parse(param_0);
|
|
}
|
|
|
|
/* 802A47AC-802A4804 29F0EC 0058+00 1/0 1/0 0/0 .text readWS__17JAUAudioArcLoaderFUlPCvUl
|
|
*/
|
|
void JAUAudioArcLoader::readWS(u32 param_0, void const* param_1, u32 param_2) {
|
|
mSection->newWaveBank(param_0, param_1);
|
|
if (param_2) {
|
|
mSection->loadWaveArc(param_0, param_2);
|
|
}
|
|
}
|
|
|
|
/* 802A4804-802A4834 29F144 0030+00 1/0 1/0 0/0 .text readBNK__17JAUAudioArcLoaderFUlPCv
|
|
*/
|
|
void JAUAudioArcLoader::readBNK(u32 param_0, void const* param_1) {
|
|
mSection->newBank(param_1, param_0);
|
|
}
|
|
|
|
/* 802A4834-802A4858 29F174 0024+00 1/0 1/0 0/0 .text readBSC__17JAUAudioArcLoaderFPCvUl
|
|
*/
|
|
void JAUAudioArcLoader::readBSC(void const* param_0, u32 param_1) {
|
|
mSection->newSeSeqCollection(param_0, param_1);
|
|
}
|
|
|
|
/* 802A4858-802A4880 29F198 0028+00 1/0 1/0 0/0 .text readBST__17JAUAudioArcLoaderFPCvUl
|
|
*/
|
|
void JAUAudioArcLoader::readBST(void const* param_0, u32 param_1) {
|
|
mSection->newSoundTable(param_0, param_1, true);
|
|
}
|
|
|
|
/* 802A4880-802A48A8 29F1C0 0028+00 1/0 0/0 0/0 .text readBSTN__17JAUAudioArcLoaderFPCvUl
|
|
*/
|
|
void JAUAudioArcLoader::readBSTN(void const* param_0, u32 param_1) {
|
|
mSection->newSoundNameTable(param_0, param_1, true);
|
|
}
|
|
|
|
/* 802A48A8-802A48D4 29F1E8 002C+00 1/0 1/0 0/0 .text readBMS__17JAUAudioArcLoaderFUlPCvUl */
|
|
void JAUAudioArcLoader::readBMS(u32 param_0, void const* param_1, u32 param_2) {
|
|
mSection->newStaticSeqData(param_0, param_1, param_2);
|
|
}
|
|
|
|
/* 802A48D4-802A4900 29F214 002C+00 1/0 1/0 0/0 .text readBMS_fromArchive__17JAUAudioArcLoaderFUl
|
|
*/
|
|
void JAUAudioArcLoader::readBMS_fromArchive(u32 param_0) {
|
|
mSection->newStaticSeqData(param_0);
|
|
}
|
|
|
|
/* 802A4900-802A4930 29F240 0030+00 1/0 1/0 0/0 .text newVoiceBank__17JAUAudioArcLoaderFUlUl */
|
|
void JAUAudioArcLoader::newVoiceBank(u32 param_0, u32 param_1) {
|
|
mSection->newVoiceBank(param_1, param_0);
|
|
}
|
|
|
|
/* 802A4930-802A4968 29F270 0038+00 1/0 1/0 0/0 .text newDynamicSeqBlock__17JAUAudioArcLoaderFUl
|
|
*/
|
|
void JAUAudioArcLoader::newDynamicSeqBlock(u32 param_0) {
|
|
JAUSectionHeap* sectionHeap = mSection->asSectionHeap();
|
|
JUT_ASSERT(72, sectionHeap);
|
|
sectionHeap->newDynamicSeqBlock(param_0);
|
|
}
|
|
|
|
/* 802A4968-802A4990 29F2A8 0028+00 1/0 1/0 0/0 .text readBSFT__17JAUAudioArcLoaderFPCv
|
|
*/
|
|
void JAUAudioArcLoader::readBSFT(void const* param_0) {
|
|
mSection->newStreamFileTable(param_0, true);
|
|
}
|
|
|
|
/* 802A4990-802A49B4 29F2D0 0024+00 1/0 1/0 0/0 .text beginBNKList__17JAUAudioArcLoaderFUlUl */
|
|
void JAUAudioArcLoader::beginBNKList(u32 param_0, u32 param_1) {
|
|
mSection->beginNewBankTable(param_0, param_1);
|
|
}
|
|
|
|
/* 802A49B4-802A49D8 29F2F4 0024+00 1/0 1/0 0/0 .text endBNKList__17JAUAudioArcLoaderFv
|
|
*/
|
|
void JAUAudioArcLoader::endBNKList() {
|
|
mSection->endNewBankTable();
|
|
}
|
|
|
|
/* 802A49D8-802A49FC 29F318 0024+00 1/0 1/0 0/0 .text readMaxSeCategory__17JAUAudioArcLoaderFiii
|
|
*/
|
|
void JAUAudioArcLoader::readMaxSeCategory(int param_0, int param_1, int param_2) {
|
|
JAISeMgr* seMgr = JASGlobalInstance<JAISeMgr>::getInstance();
|
|
if (seMgr) {
|
|
seMgr->getCategory(param_0)->setMaxActiveSe(param_1);
|
|
seMgr->getCategory(param_0)->setMaxInactiveSe(param_2);
|
|
}
|
|
}
|
|
|
|
/* 802A49FC-802A4A5C 29F33C 0060+00 1/0 0/0 0/0 .text __dt__17JAUAudioArcLoaderFv */
|
|
JAUAudioArcLoader::~JAUAudioArcLoader() {}
|