mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-03 15:04:19 +01:00
22 lines
378 B
C++
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; };
|
|
};
|