Lines Matching refs:CHANNELS

85 void AudioResamplerDyn<TC, TI, TO>::InBuffer::resize(int CHANNELS, int halfNumCoefs)  in resize()  argument
88 size_t stateCount = halfNumCoefs * CHANNELS * 2 * kStateSizeMultipleOfFilterLength; in resize()
93 && mRingFull-mState == (ssize_t) (mStateCount-halfNumCoefs*CHANNELS)) { in resize()
107 TI* srcLo = mImpulse - halfNumCoefs*CHANNELS; in resize()
108 TI* srcHi = mImpulse + halfNumCoefs*CHANNELS; in resize()
125 mImpulse = state + halfNumCoefs*CHANNELS; // actually one sample greater than needed in resize()
126 mRingFull = state + mStateCount - halfNumCoefs*CHANNELS; in resize()
131 template<int CHANNELS>
135 TI* head = impulse + halfNumCoefs*CHANNELS; in readAgain()
136 for (size_t i=0 ; i<CHANNELS ; i++) { in readAgain()
137 head[i] = in[inputIndex*CHANNELS + i]; in readAgain()
143 template<int CHANNELS>
147 impulse += CHANNELS; in readAdvance()
150 const size_t shiftDown = mRingFull - mState - halfNumCoefs*CHANNELS; in readAdvance()
151 memcpy(mState, mState+shiftDown, halfNumCoefs*CHANNELS*2*sizeof(TI)); in readAdvance()
154 readAgain<CHANNELS>(impulse, halfNumCoefs, in, inputIndex); in readAdvance()
633 template<int CHANNELS, bool LOCKED, int STRIDE>
638 const int OUTPUT_CHANNELS = (CHANNELS < 2) ? 2 : CHANNELS; in resample()
685 mInBuffer.template readAdvance<CHANNELS>( in resample()
696 mInBuffer.template readAdvance<CHANNELS>( in resample()
722 fir<CHANNELS, LOCKED, STRIDE>( in resample()
735 mInBuffer.template readAdvance<CHANNELS>(impulse, halfNumCoefs, in, inputIndex); in resample()