Files
inspectrum/inputsource.h
2015-08-02 23:00:28 +01:00

22 lines
378 B
C++

#pragma once
#include "fft.h"
#include <fftw3.h>
#include <memory>
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; };
};