Files
inspectrum/inputsource.h
2015-10-03 23:10:11 +02:00

22 lines
380 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, off_t start, int length);
off_t getSampleCount() { return sampleCount; };
};