Lines Matching refs:resampler
3 This folder contains a sample rate converter, or "resampler".
15 1. Copy the "resampler" folder to a folder in your project that is in the include path.
16 2. Add all of the \*.cpp files in the resampler folder to your project IDE or Makefile.
20 Include the [main header](MultiChannelResampler.h) for the resampler.
22 #include "resampler/MultiChannelResampler.h"
24 Here is an example of creating a stereo resampler that will convert from 44100 to 48000 Hz.
25 Only do this once, when you open your stream. Then use the sample resampler to process multiple buf…
27 MultiChannelResampler *resampler = MultiChannelResampler::make(
44 …. So the resampler will sometimes generate 1044 frames and sometimes 1045 frames. On average it wi…
57 The resampler has a method isWriteNeeded() that tells you whether to write to or read from the resa…
61 if(resampler->isWriteNeeded()) {
63 resampler->writeNextFrame(frame);
65 resampler->readNextFrame(outputBuffer);
85 if(resampler->isWriteNeeded()) {
86 resampler->writeNextFrame(inputBuffer);
90 resampler->readNextFrame(outputBuffer);
100 delete resampler;