Quote:
freembuf(top)
The freembuf() function provides a facility for you to notify the memory manager that you are no longer using a portion of the local memory buffer.
For example, if the user changed a parameter on your effect halving your memory requirements, you should use the lowest indices possible, and call this function with the highest index you are using plus 1, i.e. if you are using 128,000 items, you should call freembuf(128001); If you are no longer using any memory, you should call freembuf(0);
|
if you are using 128,000 items the highest index is 127,999, so you should call freembuf(128000).
am i going nuts or did somebody at cockos make a mistake here?
//EDIT: i'm gonna be nice and use this function but just in case i AM going nuts, i'll use highest index + 2