Lines Matching refs:inCh
877 unsigned int inCh; in dmxInitChannel() local
878 for (inCh = 0; inCh < (8); inCh += 1) { in dmxInitChannel()
879 if (inCh == outCh) { in dmxInitChannel()
880 mixFactors[outCh][inCh] = FL2FXCONST_DMX(0.5f); in dmxInitChannel()
881 mixScales[outCh][inCh] = 1; in dmxInitChannel()
883 mixFactors[outCh][inCh] = FL2FXCONST_DMX(0.0f); in dmxInitChannel()
884 mixScales[outCh][inCh] = 0; in dmxInitChannel()
1543 unsigned int inCh; in getMixFactors() local
1544 for (inCh = 0; inCh < (8); inCh += 1) { in getMixFactors()
1545 if (mixScales[outCh][inCh] > maxScale) { /* Store the new maximum */ in getMixFactors()
1546 maxScale = mixScales[outCh][inCh]; in getMixFactors()
1557 unsigned int inCh; in getMixFactors() local
1561 for (inCh = 0; inCh < (8); inCh += 1) { in getMixFactors()
1562 SHORT addFact = FX_DMX2SHRT(mixFactors[outCh][inCh]); in getMixFactors()
1563 if (mixScales[outCh][inCh] <= maxScale) { in getMixFactors()
1564 addFact >>= maxScale - mixScales[outCh][inCh]; in getMixFactors()
1566 addFact <<= mixScales[outCh][inCh] - maxScale; in getMixFactors()
1597 unsigned int inCh; in getMixFactors() local
1598 for (inCh = 0; inCh < (8); inCh += 1) { in getMixFactors()
1599 if (mixFactors[outCh][inCh] != (FIXP_DMX)0) { in getMixFactors()
1600 if (mixScales[outCh][inCh] <= maxScale) { in getMixFactors()
1601 mixFactors[outCh][inCh] >>= maxScale - mixScales[outCh][inCh]; in getMixFactors()
1603 mixFactors[outCh][inCh] <<= mixScales[outCh][inCh] - maxScale; in getMixFactors()
1605 mixScales[outCh][inCh] = maxScale; in getMixFactors()
2255 int inCh, outCh, map[(8)]; in pcmDmx_ApplyFrame() local
2257 for (inCh = 0; inCh < (8); inCh += 1) { in pcmDmx_ApplyFrame()
2258 if (inOffsetTable[inCh] < (UCHAR)numInChannels) { in pcmDmx_ApplyFrame()
2259 pInPcm[ch] = &pPcmBuf[inOffsetTable[inCh] * offset]; in pcmDmx_ApplyFrame()
2260 map[ch++] = inCh; in pcmDmx_ApplyFrame()
2268 for (inCh = 0; inCh < numInChannels; inCh += 1) { in pcmDmx_ApplyFrame()
2269 if (inCh != map[inCh]) { in pcmDmx_ApplyFrame()
2271 mixFactors[outCh][inCh] = mixFactors[outCh][map[inCh]]; in pcmDmx_ApplyFrame()
2301 int inCh, outCh; in pcmDmx_ApplyFrame() local
2304 for (inCh = 0; inCh < numInChannels; inCh += 1) { in pcmDmx_ApplyFrame()
2305 if (pInPcm[inCh] != NULL) { in pcmDmx_ApplyFrame()
2306 tIn[inCh] = *pInPcm[inCh]; in pcmDmx_ApplyFrame()
2307 pInPcm[inCh] += inStride; in pcmDmx_ApplyFrame()
2309 tIn[inCh] = (DMX_PCM)0; in pcmDmx_ApplyFrame()
2315 for (inCh = 0; inCh < numInChannels; inCh += 1) { in pcmDmx_ApplyFrame()
2316 tOut[outCh] += fMult((DMX_PCMF)tIn[inCh], mixFactors[outCh][inCh]); in pcmDmx_ApplyFrame()