Skip to content

Commit

Permalink
fix buffer overflow in linear interpolation of audio buffer with loop (
Browse files Browse the repository at this point in the history
…#6217)

#changelog #sound
  • Loading branch information
shenberg authored and arturoc committed Jan 19, 2019
1 parent bd6eb1d commit 037ee2f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion libs/openFrameworks/sound/ofSoundBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ void ofSoundBuffer::linearResampleTo(ofSoundBuffer &outBuffer, std::size_t fromF
b = buffer[intPosition+inChannels+j];
*resBufferPtr++ = ofLerp(a,b,remainder);
}
resBufferPtr+=inChannels;
position += increment;
intPosition = position;
}
Expand Down

0 comments on commit 037ee2f

Please sign in to comment.