Lines Matching defs:Resampler
318 // Start of js/other/resampler.js file.
320 //JavaScript Audio Resampler (c) 2011 - Grant Galitz
321 function Resampler(fromSampleRate, toSampleRate, channels, outputBufferSize, noReturn) {
329 Resampler.prototype.initialize = function () {
333 //Setup a resampler bypass:
334 this.resampler = this.bypassResampler; //Resampler just returns what was passed through.
338 //Setup the interpolation resampler:
340 this.resampler = this.interpolate; //Resampler is a custom quality interpolation algorithm.
348 throw(new Error("Invalid settings specified for the resampler."));
351 Resampler.prototype.compileInterpolationFunction = function () {
424 Resampler.prototype.bypassResampler = function (buffer) {
435 Resampler.prototype.bufferSlice = function (sliceAmount) {
458 Resampler.prototype.initializeBuffers = function () {
470 // End of js/other/resampler.js file.
861 var resampleLength = resampleControl.resampler(getBufferSamples());
908 resampleControl = new Resampler(XAudioJSSampleRate, APISampleRate, 1, resampleBufferSize, true);
915 resampleControl = new Resampler(XAudioJSSampleRate, APISampleRate, 2, resampleBufferSize, true);