mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -05:00
looperclip: use [] to access vector not .at()
Optimize away a bunch of bad performance Signed-off-by: Harry van Haaren <harryhaaren@gmail.com>
This commit is contained in:
parent
01a6fded5f
commit
5692d5123d
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue