MCPcopy Create free account
hub / github.com/doldecomp/mkdd / setGroupCount

Method setGroupCount

libs/JSystem/JAudio/System/JASBasicWaveBank.cpp:30–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void JASBasicWaveBank::setGroupCount(u32 count, JKRHeap *pHeap) {
31 for (int i = 0; i < mGroupCount; i++) {
32 delete mWaveGroupArray[i];
33 }
34 delete[] mWaveGroupArray;
35 mGroupCount = count;
36 mWaveGroupArray = new (pHeap, 0) TWaveGroup*[count];
37#line 52
38 JUT_ASSERT(mWaveGroupArray != 0);
39 for (int i = 0; i < mGroupCount; i++) {
40 mWaveGroupArray[i] = new (pHeap, 0) TWaveGroup(this);
41 }
42}
43
44void JASBasicWaveBank::setWaveTableSize(u32 count, JKRHeap *pHeap) {
45 delete[] mWaveTable;

Callers 1

createBasicWaveBankMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected