#ifndef RESAMPLER_SINC_RESAMPLER_H
#define RESAMPLER_SINC_RESAMPLER_H
#include <memory>
#include <sys/types.h>
#include <unistd.h>
#include "MultiChannelResampler.h"
#include "ResamplerDefinitions.h"
namespace RESAMPLER_OUTER_NAMESPACE::resampler {
class SincResampler : public MultiChannelResampler {
public:
explicit SincResampler(const MultiChannelResampler::Builder &builder);
virtual ~SincResampler() = default;
void readFrame(float *frame) override;
protected:
std::vector<float> mSingleFrame2; int32_t mNumRows = 0;
double mPhaseScaler = 1.0;
};
}
#endif