#include "common_audio/resampler/include/resampler.h"
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "common_audio/signal_processing/include/signal_processing_library.h"
#include "rtc_base/logging.h"
namespace webrtc {
Resampler::Resampler()
: … { … }
Resampler::Resampler(int inFreq, int outFreq, size_t num_channels)
: … { … }
Resampler::~Resampler() { … }
int Resampler::ResetIfNeeded(int inFreq, int outFreq, size_t num_channels) { … }
int Resampler::Reset(int inFreq, int outFreq, size_t num_channels) { … }
int Resampler::ComputeResamplerMode(int in_freq_hz,
int out_freq_hz,
ResamplerMode* mode) { … }
int Resampler::Push(const int16_t* samplesIn,
size_t lengthIn,
int16_t* samplesOut,
size_t maxLen,
size_t& outLen) { … }
}