The input, named segment_ is a std::vector<double> type, and it holds 1 channel of data.
I got this far:
Dsp::SimpleFilter<Dsp::Butterworth::HighPass<2>, 1> filter_;
filter_.setup(2, samplerate_, 1000);
filter_.process(segment_.size(), (double * const*)&segment_[0]);
When I run this I get an bad access exception.
I must be doing something stupid. Can you spot the problem?
Also if I want to change the filter type at runtime from low to highpass, what do I store in my program? A pointer to a what generic type?
