2 ms·
> I struggled for days getting all the buffer copying right (raw pointers to many interrim buffers). It seems like you struggled with math (indexing logic) rat
by zvrba 8y ago
> I struggled for days getting all the buffer copying right (raw pointers to many interrim buffers).
It seems like you struggled with math (indexing logic) rather than C++.
> how else can you tackle this problem in a modern way?
You could try to write an iterator that takes into account sample rate, channel count, etc. That way the logic for handling buffer formats and iteration over samples is encapsulated into a single reusable component.