| 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 | { |
nothing calls this directly
no test coverage detected