May 19, 2008 at 6:18pm
I’m wrote a function to resize a buffer, but I’m not sure what the
Below is my code. It seems to work fine btw, in case someone’s interested.
I also tried to use the sysmem api but that didn’t seem to be compatible. Is
int mutResizeBuffer(t_buffer *b, long nFrames, long nChans)
long saveinuse = b->b_inuse;
long newSize = nFrames * nChans;
t_resizebytes((char *)b->b_samples, b->b_size * sizeof(float),
// alternative for resizebytes
// update buffer attributes
b->b_inuse = saveinuse;
You must be logged in to reply to this topic.