Lines Matching refs:inCh
849 unsigned int inCh; in dmxInitChannel() local
850 for (inCh = 0; inCh < (8); inCh += 1) { in dmxInitChannel()
851 if (inCh == outCh) { in dmxInitChannel()
852 mixFactors[outCh][inCh] = FL2FXCONST_DMX(0.5f); in dmxInitChannel()
853 mixScales[outCh][inCh] = 1; in dmxInitChannel()
855 mixFactors[outCh][inCh] = FL2FXCONST_DMX(0.0f); in dmxInitChannel()
856 mixScales[outCh][inCh] = 0; in dmxInitChannel()
1515 unsigned int inCh; in getMixFactors() local
1516 for (inCh = 0; inCh < (8); inCh += 1) { in getMixFactors()
1517 if (mixScales[outCh][inCh] > maxScale) { /* Store the new maximum */ in getMixFactors()
1518 maxScale = mixScales[outCh][inCh]; in getMixFactors()
1529 unsigned int inCh; in getMixFactors() local
1533 for (inCh = 0; inCh < (8); inCh += 1) { in getMixFactors()
1534 SHORT addFact = FX_DMX2SHRT(mixFactors[outCh][inCh]); in getMixFactors()
1535 if (mixScales[outCh][inCh] <= maxScale) { in getMixFactors()
1536 addFact >>= maxScale - mixScales[outCh][inCh]; in getMixFactors()
1538 addFact <<= mixScales[outCh][inCh] - maxScale; in getMixFactors()
1569 unsigned int inCh; in getMixFactors() local
1570 for (inCh = 0; inCh < (8); inCh += 1) { in getMixFactors()
1571 if (mixFactors[outCh][inCh] != (FIXP_DMX)0) { in getMixFactors()
1572 if (mixScales[outCh][inCh] <= maxScale) { in getMixFactors()
1573 mixFactors[outCh][inCh] >>= maxScale - mixScales[outCh][inCh]; in getMixFactors()
1575 mixFactors[outCh][inCh] <<= mixScales[outCh][inCh] - maxScale; in getMixFactors()
1577 mixScales[outCh][inCh] = maxScale; in getMixFactors()
2227 int inCh, outCh, map[(8)]; in pcmDmx_ApplyFrame() local
2229 for (inCh = 0; inCh < (8); inCh += 1) { in pcmDmx_ApplyFrame()
2230 if (inOffsetTable[inCh] < (UCHAR)numInChannels) { in pcmDmx_ApplyFrame()
2231 pInPcm[ch] = &pPcmBuf[inOffsetTable[inCh] * offset]; in pcmDmx_ApplyFrame()
2232 map[ch++] = inCh; in pcmDmx_ApplyFrame()
2240 for (inCh = 0; inCh < numInChannels; inCh += 1) { in pcmDmx_ApplyFrame()
2241 if (inCh != map[inCh]) { in pcmDmx_ApplyFrame()
2243 mixFactors[outCh][inCh] = mixFactors[outCh][map[inCh]]; in pcmDmx_ApplyFrame()
2273 int inCh, outCh; in pcmDmx_ApplyFrame() local
2276 for (inCh = 0; inCh < numInChannels; inCh += 1) { in pcmDmx_ApplyFrame()
2277 if (pInPcm[inCh] != NULL) { in pcmDmx_ApplyFrame()
2278 tIn[inCh] = *pInPcm[inCh]; in pcmDmx_ApplyFrame()
2279 pInPcm[inCh] += inStride; in pcmDmx_ApplyFrame()
2281 tIn[inCh] = (DMX_PCM)0; in pcmDmx_ApplyFrame()
2287 for (inCh = 0; inCh < numInChannels; inCh += 1) { in pcmDmx_ApplyFrame()
2288 tOut[outCh] += fMult((DMX_PCMF)tIn[inCh], mixFactors[outCh][inCh]); in pcmDmx_ApplyFrame()