The FirFilter constructor and init function do not need to be templatized.

master
Rob Riggs 2021-12-28 17:39:21 -06:00
rodzic 9a65906f5c
commit a8296cbdca
1 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -36,8 +36,7 @@ struct FirFilter {
FirFilter()
{}
template <size_t N>
FirFilter(std::array<float, N> const& taps)
FirFilter(std::array<float, FILTER_SIZE> const& taps)
{
init(taps);
}
@ -47,8 +46,7 @@ struct FirFilter {
init(taps);
}
template <size_t N>
void init(std::array<float, N> const& taps)
void init(std::array<float, FILTER_SIZE> const& taps)
{
arm_fir_init_f32(&instance, FILTER_SIZE, (float*)taps.data(),
filter_state, BLOCK_SIZE);