// // Generated By: dol2asm // Translation Unit: JASBasicBank // #include "JSystem/JAudio2/JASBasicBank.h" #include "JSystem/JAudio2/JASCalc.h" /* 80297D78-80297DA4 2926B8 002C+00 0/0 2/2 0/0 .text __ct__12JASBasicBankFv */ JASBasicBank::JASBasicBank() { mInstTable = NULL; mInstNumMax = 0; } /* 80297DA4-80297E00 2926E4 005C+00 0/0 2/2 0/0 .text newInstTable__12JASBasicBankFUcP7JKRHeap */ void JASBasicBank::newInstTable(u8 num, JKRHeap* heap) { if (num != 0) { mInstNumMax = num; mInstTable = new (heap, 0) JASInst*[mInstNumMax]; JASCalc::bzero(mInstTable, mInstNumMax * 4); } } /* 80297E00-80297E68 292740 0068+00 1/0 0/0 0/0 .text * getInstParam__12JASBasicBankCFiiiP12JASInstParam */ bool JASBasicBank::getInstParam(int prg_no, int param_1, int param_2, JASInstParam* o_param) const { JASInst* inst = getInst(prg_no); if (inst == NULL) { return NULL; } return inst->getParam(param_1, param_2, o_param); } /* 80297E68-80297E80 2927A8 0018+00 0/0 2/2 0/0 .text setInst__12JASBasicBankFiP7JASInst */ void JASBasicBank::setInst(int prg_no, JASInst* inst) { if (mInstTable != NULL) { mInstTable[prg_no] = inst; } } /* 80297E80-80297EC4 2927C0 0044+00 1/1 1/1 0/0 .text getInst__12JASBasicBankCFi */ JASInst* JASBasicBank::getInst(int prg_no) const { if (prg_no < 0) { return NULL; } if (prg_no >= mInstNumMax) { return NULL; } if (mInstTable == NULL) { return NULL; } return mInstTable[prg_no]; }