20 #include "IAudioResampler.h"
22 #include "AudioResampler.h"
24 namespace com {
namespace avpkit {
namespace core
27 IAudioResampler :: IAudioResampler()
31 IAudioResampler :: ~IAudioResampler()
37 int32_t outputRate, int32_t inputRate)
40 return AudioResampler::make(outputChannels, inputChannels,
41 outputRate, inputRate);
46 int32_t outputRate, int32_t inputRate,
50 return AudioResampler::make(outputChannels, inputChannels,
51 outputRate, inputRate,
58 int32_t outputRate, int32_t inputRate,
60 int32_t filterLen, int32_t log2PhaseCount,
61 bool isLinear,
double cutoff)
64 return AudioResampler::make(outputChannels, inputChannels,
65 outputRate, inputRate,
67 filterLen, log2PhaseCount,
static void init()
Internal Only.
Used to resample IAudioSamples to different sample rates or number of channels.
static IAudioResampler * make(int32_t outputChannels, int32_t inputChannels, int32_t outputRate, int32_t inputRate)
Create a new IAudioResampler object.
virtual bool isLinear()=0
Are we linearly interpolating between filters?
Format
The format we use to represent audio.
WARNING: Do not use logging in this class, and do not set any static file variables to values other t...