Closed rawler closed 1 year ago
I tried doing the same to the true_peak-code, but hit problems like "Frame" is not implemented for all N of [Sample; N]
. Hopefully, when const-generics mature a little bit throughout the Rust ecosystem, it will be worth revisiting.
Can you create an issue so that the Frame
type is updated to const generics and link it here?
Also clippy seems unhappy :)
Clippy is appeased, but I notice I forgot about the C-interface. Will fix and come back :)
Well, now we have clippy warnings :) Do you want to handle those in a separate commit as part of this PR? Otherwise I can also take care of them before.
Now it's only the tests related to this PR failing
Alright. Accidentally swapped parameter order for the test. Now everything should be in order.
Thanks!
In particular, we can avoid macros, the ArrayBuf-hack, and associated PhantomData. The net result should be code with less indirections, that is slightly easier to read and understand. (But performs the same)