Lines Matching refs:CHANNELS
86 void AudioResamplerDyn<TC, TI, TO>::InBuffer::resize(int CHANNELS, int halfNumCoefs) in resize() argument
89 size_t stateCount = halfNumCoefs * CHANNELS * 2 * kStateSizeMultipleOfFilterLength; in resize()
94 && mRingFull-mState == (ssize_t) (mStateCount-halfNumCoefs*CHANNELS)) { in resize()
108 TI* srcLo = mImpulse - halfNumCoefs*CHANNELS; in resize()
109 TI* srcHi = mImpulse + halfNumCoefs*CHANNELS; in resize()
126 mImpulse = state + halfNumCoefs*CHANNELS; // actually one sample greater than needed in resize()
127 mRingFull = state + mStateCount - halfNumCoefs*CHANNELS; in resize()
132 template<int CHANNELS>
136 TI* head = impulse + halfNumCoefs*CHANNELS; in readAgain()
137 for (size_t i=0 ; i<CHANNELS ; i++) { in readAgain()
138 head[i] = in[inputIndex*CHANNELS + i]; in readAgain()
144 template<int CHANNELS>
148 impulse += CHANNELS; in readAdvance()
151 const size_t shiftDown = mRingFull - mState - halfNumCoefs*CHANNELS; in readAdvance()
152 memcpy(mState, mState+shiftDown, halfNumCoefs*CHANNELS*2*sizeof(TI)); in readAdvance()
155 readAgain<CHANNELS>(impulse, halfNumCoefs, in, inputIndex); in readAdvance()
622 template<int CHANNELS, bool LOCKED, int STRIDE>
627 const int OUTPUT_CHANNELS = (CHANNELS < 2) ? 2 : CHANNELS; in resample()
674 mInBuffer.template readAdvance<CHANNELS>( in resample()
685 mInBuffer.template readAdvance<CHANNELS>( in resample()
711 fir<CHANNELS, LOCKED, STRIDE>( in resample()
724 mInBuffer.template readAdvance<CHANNELS>(impulse, halfNumCoefs, in, inputIndex); in resample()