It’s not so openFrameworks related, but am programming this in OF (and it looks great!), so maybe some of you could answer this one.
I am recording a load of FFT spectrograms, big vectors of vectors, and processing these. Every now and then the program’s soundStream gets interrupted. I suspect, because the vector has run out of size and needs to reallocate memory and copy the old data across. Is there any way to check if that is indeed happening?
(supposing it is, I might then try to get round it by making circular vectors or something)
also, is there any problem in doing something like
create std::vector newVector
this would erase the first column and add to the last. Thus keeping the big matrix at constant size. But is vector the best way to implemewnt such a thing? Is the copying of all the other vectors a memory-intensive thing to do?
any help much appreciated!