// ---------------------------------------------------------- void ofxAudioUnitTap::getLeftWaveform(ofPolyline &outLine, float w, float h, unsigned sampleRate) // ---------------------------------------------------------- { getSamples(_tempBuffer, 0); WaveformForBuffer(_tempBuffer, w, h, outLine, sampleRate); }
void ofxAudioUnitTap::getWaveform(ofPolyline &l, float w, float h, unsigned chan, unsigned rate) { getSamples(_tempBuffer, chan); WaveformForBuffer(&_tempBuffer[0], _tempBuffer.size(), w, h, l, rate); }