Lines Matching refs:inCh
809 unsigned int inCh; in dmxInitChannel() local
810 for (inCh=0; inCh < PCM_DMX_MAX_CHANNELS; inCh+=1) { in dmxInitChannel()
811 if (inCh == outCh) { in dmxInitChannel()
812 mixFactors[outCh][inCh] = FL2FXCONST_DMX(0.5f); in dmxInitChannel()
813 mixScales[outCh][inCh] = 1; in dmxInitChannel()
815 mixFactors[outCh][inCh] = FL2FXCONST_DMX(0.0f); in dmxInitChannel()
816 mixScales[outCh][inCh] = 0; in dmxInitChannel()
938 unsigned int outCh, inCh, inChCfg = 0; in getMixFactors() local
1338 for (inCh=0; inCh < PCM_DMX_MAX_CHANNELS; inCh+=1) { in getMixFactors()
1339 if (mixScales[outCh][inCh] > maxScale) in getMixFactors()
1341 maxScale = mixScales[outCh][inCh]; in getMixFactors()
1355 for (inCh=0; inCh < PCM_DMX_MAX_CHANNELS; inCh+=1) { in getMixFactors()
1356 SHORT addFact = FX_DMX2SHRT(mixFactors[outCh][inCh]); in getMixFactors()
1357 if ( mixScales[outCh][inCh] <= maxScale ) { in getMixFactors()
1358 addFact >>= maxScale - mixScales[outCh][inCh]; in getMixFactors()
1360 addFact <<= mixScales[outCh][inCh] - maxScale; in getMixFactors()
1392 for (inCh=0; inCh < PCM_DMX_MAX_CHANNELS; inCh+=1) { in getMixFactors()
1393 if (mixFactors[outCh][inCh] != (FIXP_DMX)0) { in getMixFactors()
1394 if ( mixScales[outCh][inCh] <= maxScale ) { in getMixFactors()
1395 mixFactors[outCh][inCh] >>= maxScale - mixScales[outCh][inCh]; in getMixFactors()
1397 mixFactors[outCh][inCh] <<= mixScales[outCh][inCh] - maxScale; in getMixFactors()
1399 mixScales[outCh][inCh] = maxScale; in getMixFactors()
2075 int inCh, outCh, map[PCM_DMX_MAX_CHANNELS]; in pcmDmx_ApplyFrame() local
2077 for (inCh=0; inCh < PCM_DMX_MAX_CHANNELS; inCh+=1) { in pcmDmx_ApplyFrame()
2078 if (inOffsetTable[inCh] != 255) { in pcmDmx_ApplyFrame()
2079 pInPcm[ch] = &pPcmBuf[inOffsetTable[inCh]*offset]; in pcmDmx_ApplyFrame()
2080 map[ch++] = inCh; in pcmDmx_ApplyFrame()
2091 for (inCh=0; inCh < numInChannels; inCh+=1) { in pcmDmx_ApplyFrame()
2092 if (inCh != map[inCh]) { in pcmDmx_ApplyFrame()
2095 mixFactors[outCh][inCh] = mixFactors[outCh][map[inCh]]; in pcmDmx_ApplyFrame()
2123 int inCh, outCh; in pcmDmx_ApplyFrame() local
2126 for (inCh=0; inCh < numInChannels; inCh+=1) { in pcmDmx_ApplyFrame()
2127 tIn[inCh] = (FIXP_PCM)*pInPcm[inCh]; in pcmDmx_ApplyFrame()
2128 pInPcm[inCh] += inStride; in pcmDmx_ApplyFrame()
2132 for (inCh=0; inCh < numInChannels; inCh+=1) { in pcmDmx_ApplyFrame()
2133 tOut[outCh] += fMult(tIn[inCh], mixFactors[outCh][inCh]); in pcmDmx_ApplyFrame()