23 static_cast<int>(
std::ceil(reader.GetSampleRate() / 24000.))
40 float* decimated,
long long decimatedStart,
size_t numDecimatedFrames)
const
47 for (
auto i = 0; i < numDecimatedFrames; ++i)
const int mDecimationFactor
double GetSampleRate() const override
std::vector< float > mBuffer
long long GetNumSamples() const override
const MirAudioReader & mReader
void ReadFloats(float *buffer, long long start, size_t numFrames) const override
DecimatingMirAudioReader(const MirAudioReader &reader)
virtual void ReadFloats(float *buffer, long long where, size_t numFrames) const =0
virtual long long GetNumSamples() const =0
virtual double GetSampleRate() const =0