News for hackers. Stuff that matters.
Re:I learnt C++ in 2018 and have no regrets by zvrba on Tuesday January 08, 2019 @02:11AM (#18853888)
> 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.

There are no comments on this comment yet.