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

Method initStart

libs/JSystem/JAudio/System/JASOscillator.cpp:40–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void JASOscillator::initStart(const Data *pData) {
41 mData = pData;
42 _04 = 0.0f;
43 _08 = 0.0f;
44 _0C = 0.0f;
45 _14 = 0;
46 mDirectRelease = 0;
47
48 if (pData == NULL) {
49 _1C = 0;
50 }
51 else if (mData->mTable == NULL) {
52 _1C = 2;
53 _08 = 1.0f;
54 }
55 else {
56 _10 = mData->mTable->_4 / 32768.0f;
57 _18 = mData->mTable->_0;
58 _1C = 1;
59 }
60
61}
62
63void JASOscillator::incCounter(f32 x) {
64 switch (_1C) {

Callers 1

setOscInitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected