looperclip: use [] to access vector not .at()
Optimize away a bunch of bad performance Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>main
parent
01a6fded5f
commit
5692d5123d
|
@ -430,9 +430,9 @@ void LooperClip::getSample(float playSpeed, float* L, float* R)
|
|||
|
||||
std::vector<float>& vL = _buffer->getDataL();
|
||||
std::vector<float>& vR = _buffer->getDataR();
|
||||
*L = vL.at(_playhead);
|
||||
*R = vR.at(_playhead);
|
||||
_playhead +=playSpeed;
|
||||
*L = vL[_playhead];
|
||||
*R = vR[_playhead];
|
||||
_playhead += playSpeed;
|
||||
} else {
|
||||
*L = 0.f;
|
||||
*R = 0.f;
|
||||
|
|
Loading…
Reference in New Issue