hi, i'm trying to write to a buffer in an external i'm making, and this involves resizing it. i'm wondering what the proper way to do this is.
i've tried something like:
b->b_samples = (float*)malloc(size*sizeof(float));
and updating the buffers size feilds etc, then just writing to the new b2->b_samples... but i think this is all very wrong. i get memory violation errors when i try to free the old b_samples for starters.
i'd appreciate any help