#pragma once #include "fft.h" #include #include class InputSource { private: FILE *m_file; off_t m_file_size; off_t sampleCount; fftwf_complex *m_data; public: InputSource(const char *filename); ~InputSource(); bool getSamples(fftwf_complex *dest, int start, int length); off_t getSampleCount() { return sampleCount; }; };