| 28 | #include "SynthGlobals.h" |
| 29 | |
| 30 | void SampleDrawer::Draw(int playPosition, float vol, ofColor color) |
| 31 | { |
| 32 | ofPushMatrix(); |
| 33 | ofTranslate(mX, mY); |
| 34 | mSample->LockDataMutex(true); |
| 35 | DrawAudioBuffer(mWidth, mHeight, mSample->Data(), mStartSample, mEndSample, playPosition, vol, color); |
| 36 | mSample->LockDataMutex(false); |
| 37 | ofPopMatrix(); |
| 38 | } |
| 39 | |
| 40 | void SampleDrawer::DrawLine(int sample, ofColor color) |
| 41 | { |
nothing calls this directly
no test coverage detected