Lines Matching refs:CHANNELS
82 void AudioResamplerDyn<TC, TI, TO>::InBuffer::resize(int CHANNELS, int halfNumCoefs) in resize() argument
85 size_t stateCount = halfNumCoefs * CHANNELS * 2 * kStateSizeMultipleOfFilterLength; in resize()
90 && mRingFull-mState == (ssize_t) (mStateCount-halfNumCoefs*CHANNELS)) { in resize()
101 TI* srcLo = mImpulse - halfNumCoefs*CHANNELS; in resize()
102 TI* srcHi = mImpulse + halfNumCoefs*CHANNELS; in resize()
119 mImpulse = state + halfNumCoefs*CHANNELS; // actually one sample greater than needed in resize()
120 mRingFull = state + mStateCount - halfNumCoefs*CHANNELS; in resize()
125 template<int CHANNELS>
129 TI* head = impulse + halfNumCoefs*CHANNELS; in readAgain()
130 for (size_t i=0 ; i<CHANNELS ; i++) { in readAgain()
131 head[i] = in[inputIndex*CHANNELS + i]; in readAgain()
137 template<int CHANNELS>
141 impulse += CHANNELS; in readAdvance()
144 const size_t shiftDown = mRingFull - mState - halfNumCoefs*CHANNELS; in readAdvance()
145 memcpy(mState, mState+shiftDown, halfNumCoefs*CHANNELS*2*sizeof(TI)); in readAdvance()
148 readAgain<CHANNELS>(impulse, halfNumCoefs, in, inputIndex); in readAdvance()
486 template<int CHANNELS, bool LOCKED, int STRIDE>
491 const int OUTPUT_CHANNELS = (CHANNELS < 2) ? 2 : CHANNELS; in resample()
535 mInBuffer.template readAdvance<CHANNELS>( in resample()
546 mInBuffer.template readAdvance<CHANNELS>( in resample()
572 fir<CHANNELS, LOCKED, STRIDE>( in resample()
585 mInBuffer.template readAdvance<CHANNELS>(impulse, halfNumCoefs, in, inputIndex); in resample()