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

Method TedSidInstance

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

Source from the content-addressed store, hash-verified

35{
36
37 TedSidInstance::TedSidInstance(TedSid *aParent)
38 {
39 mParent = aParent;
40 mSampleCount = 0;
41 mSID = new SIDsound(mParent->mModel, 0);
42 mSID->setFrequency(0);
43 mSID->setSampleRate(TED_SOUND_CLOCK);
44 mSID->setFrequency(1);
45
46 mTED = new TED();
47 mTED->oscillatorInit();
48
49 mNextReg = 100; // NOP
50 mNextVal = 0;
51 int i;
52 for (i = 0; i < 128; i++)
53 mRegValues[i] = 0;
54 }
55
56 unsigned int TedSidInstance::getAudio(float *aBuffer, unsigned int aSamplesToRead, unsigned int aBufferSize)
57 {

Callers

nothing calls this directly

Calls 3

setFrequencyMethod · 0.80
setSampleRateMethod · 0.80
oscillatorInitMethod · 0.80

Tested by

no test coverage detected