Re:Implementing Mario's Stack Blur 15 times in C++ (with tes...
by lionkor on Friday November 10, 2023 @10:47AM
(#38220307)
instead of a deque or circular buffer, wouldnt it make more sense to use a span?
[ Parent
| on HN ]
Re:Implementing Mario's Stack Blur 15 times in C++ (with tes...
by sudara on Friday November 10, 2023 @10:58AM
(#38220436)
Probably! The dequeue implementation was just for fun, as I miss working in higher level languages :) Home cooked circular buffers is usually how one usually sees real-time audio code written... I haven't had much hands on experience with std::span, but seeing as it's a non-owning view, maybe it would be perfect?