Lines Matching refs:CHANNELS
294 template<int CHANNELS>
299 const size_t headOffset = c.halfNumCoefs*CHANNELS; in resample()
320 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample()
323 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample()
329 read<CHANNELS>(impulse, phaseFraction, mBuffer.i16, inputIndex); in resample()
338 for (size_t i=0 ; i<CHANNELS ; i++) { in resample()
339 head[i] = in[inputIndex*CHANNELS + i]; in resample()
344 filterCoefficient<CHANNELS>(&out[outputIndex], phaseFraction, impulse, vRL); in resample()
354 read<CHANNELS>(impulse, phaseFraction, in, inputIndex); in resample()
369 return outputIndex / CHANNELS; in resample()
372 template<int CHANNELS>
384 impulse += CHANNELS; in read()
389 const size_t stateSize = (c.halfNumCoefs*2)*CHANNELS; in read()
394 int16_t* head = impulse + c.halfNumCoefs*CHANNELS; in read()
395 for (size_t i=0 ; i<CHANNELS ; i++) { in read()
396 head[i] = in[inputIndex*CHANNELS + i]; in read()
400 template<int CHANNELS>
425 int16_t const* sN = samples + CHANNELS; in filterCoefficient()
433 interpolate<CHANNELS>(l, r, coefsP++, offset, lerpP, sP); in filterCoefficient()
434 sP -= CHANNELS; in filterCoefficient()
435 interpolate<CHANNELS>(l, r, coefsN++, offset, lerpN, sN); in filterCoefficient()
436 sN += CHANNELS; in filterCoefficient()
442 if (CHANNELS == 1) { in filterCoefficient()
445 sP -= CHANNELS*3; in filterCoefficient()
510 } else if (CHANNELS == 2) { in filterCoefficient()
513 sP -= CHANNELS*3; in filterCoefficient()
596 template<int CHANNELS>
605 if (CHANNELS == 2) { in interpolate()