MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / tick

Method tick

extlibs/soloud/src/audiosource/tedsid/soloud_tedsid.cpp:72–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 }
71
72 void TedSidInstance::tick()
73 {
74 if (mParent->mFile == 0)
75 return;
76
77 while (mSampleCount == 0)
78 {
79 mRegValues[mNextReg] = mNextVal;
80 if (mNextReg < 64)
81 {
82 mSID->write(mNextReg, mNextVal);
83 }
84 else
85 if (mNextReg < 64 + 5)
86 {
87 mTED->writeSoundReg(mNextReg - 64, mNextVal);
88 }
89// mSampleCount = mParent->mFile->read16();
90 mNextVal = mParent->mFile->read8();
91 mNextReg = mParent->mFile->read8();
92 if (mNextReg & 0x80)
93 {
94 // timestamp!
95 mSampleCount = ((int)(mNextReg & 0x7f) << 8) | mNextVal;
96 mNextVal = mParent->mFile->read8();
97 mNextReg = mParent->mFile->read8();
98 }
99 if (mParent->mFile->eof())
100 mParent->mFile->seek(8);
101 }
102 }
103
104 float TedSidInstance::getInfo(unsigned int aInfoKey)
105 {

Callers

nothing calls this directly

Calls 5

writeSoundRegMethod · 0.80
read8Method · 0.80
eofMethod · 0.80
writeMethod · 0.45
seekMethod · 0.45

Tested by

no test coverage detected