#ifndef FFCONV_RESAMPLER_H #define FFCONV_RESAMPLER_H #include "Frame.h" extern "C" { #include } namespace ffcpp { class Resampler { private: SwrContext* _swrContext; public: Resampler(int inChannelLayout, int inSampleRate, AVSampleFormat inSampleFormat, int outChannelLayout, int outSampleRate, AVSampleFormat outSampleFormat); ~Resampler(); Frame Resample(Frame& inFrame); }; } #endif //FFCONV_RESAMPLER_H