you can do something like that (even if IMHO you should avoid to free/alloc memory each time) ;
you don’t need to use float *storage = x->storage ;
correct me if i didn’t understand your problem.
float *storage = x->storage
x->storage = (float *)sysmem_newptr (totalframes * b_nchans * sizeof(float));
memcpy (x->storage, b_samples + (startframe * b_nchans), totalframes * b_nchans * sizeof(float));
n = totalframes;
fbuf_paste (x, n);
fbuf_paste (t_myObject *x, long n)
float *toto = x->storage;
Log in to reply
C74 IN YOUR INBOX
C74 RSS Feed | © Copyright Cycling '74 | Terms & Conditions
Let us tell you about notable Max projects, obscure facts, and creative media artists of all kinds.