blob: 8b5853ceaa2e89046d1e9d08ff05b9ed65ead565 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
//
// Generated by dtk
// Translation Unit: JASBasicBank.cpp
//
#include "JSystem/JSystem.h" // IWYU pragma: keep
#include "JSystem/JAudio/JASBasicBank.h"
#include "JSystem/JAudio/JASCalc.h"
#include "JSystem/JKernel/JKRSolidHeap.h"
#include "JSystem/JUtility/JUTAssert.h"
/* 80284570-8028459C .text __ct__Q28JASystem10TBasicBankFv */
JASystem::TBasicBank::TBasicBank() {
mInstTable = NULL;
mInstCount = 0;
}
/* 8028459C-80284610 .text __dt__Q28JASystem10TBasicBankFv */
JASystem::TBasicBank::~TBasicBank() {
delete[] mInstTable;
}
/* 80284610-802846B0 .text setInstCount__Q28JASystem10TBasicBankFUl */
void JASystem::TBasicBank::setInstCount(u32 param_1) {
delete[] mInstTable;
mInstTable = new (getCurrentHeap(), 0) TInst*[param_1];
JUT_ASSERT(36, mInstTable != NULL);
Calc::bzero(mInstTable, param_1 * 4);
mInstCount = param_1;
}
/* 802846B0-80284768 .text setInst__Q28JASystem10TBasicBankFiPQ28JASystem5TInst */
void JASystem::TBasicBank::setInst(int prg_no, JASystem::TInst* param_2) {
JUT_ASSERT(45, prg_no < mInstCount);
JUT_ASSERT(46, prg_no >= 0);
mInstTable[prg_no] = param_2;
}
/* 80284768-802847F0 .text getInst__Q28JASystem10TBasicBankCFi */
JASystem::TInst* JASystem::TBasicBank::getInst(int prg_no) const {
JUT_ASSERT(53, prg_no >= 0);
if (prg_no >= mInstCount) {
return 0;
}
return mInstTable[prg_no];
}
|