Can a buffer be resized?
-
@Christoph-Hart Can a buffer be resized?
I currently creating a buffer 4 times longer than what I need to prevent from exceeding the index when operating on it.
So if one sets a very large sample rate, I'm quite protected up to 192KHz. But this doesn't seem to be the most efficient way, right?
And What if I want to record longer, or dynamically change the size anyway?What are the different methods for buffers? they aren't in the API list nor in the doc...
-
This post is deleted! -
@Christoph-Hart Thanks for the last Buffer additions
It seems thatindexOfPeak
returns the index of the last non-zero value instead of peak one.