Lines Matching defs:pChannel
499 S_SYNTH_CHANNEL *pChannel;
505 pChannel = pSynth->channels;
507 for (i = 0; i < NUM_SYNTH_CHANNELS; i++, pChannel++)
509 pChannel->channelFlags = DEFAULT_CHANNEL_FLAGS;
510 pChannel->staticGain = DEFAULT_CHANNEL_STATIC_GAIN;
511 pChannel->staticPitch = DEFAULT_CHANNEL_STATIC_PITCH;
512 pChannel->pool = 0;
517 pChannel->bankNum = DEFAULT_RHYTHM_BANK_NUMBER;
518 pChannel
521 pChannel->bankNum = DEFAULT_MELODY_BANK_NUMBER;
542 S_SYNTH_CHANNEL *pChannel;
545 pChannel = pSynth->channels;
547 for (i = 0; i < NUM_SYNTH_CHANNELS; i++, pChannel++)
549 pChannel->pitchBend = DEFAULT_PITCH_BEND;
550 pChannel->modWheel = DEFAULT_MOD_WHEEL;
551 pChannel->volume = DEFAULT_CHANNEL_VOLUME;
552 pChannel->pan = DEFAULT_PAN;
553 pChannel->expression = DEFAULT_EXPRESSION;
563 pChannel->channelPressure = DEFAULT_CHANNEL_PRESSURE;
564 pChannel->registeredParam = DEFAULT_REGISTERED_PARAM;
565 pChannel->pitchBendSensitivity = DEFAULT_PITCH_BEND_SENSITIVITY;
566 pChannel->finePitch = DEFAULT_FINE_PITCH;
567 pChannel->coarsePitch = DEFAULT_COARSE_PITCH;
570 pChannel->channelFlags |= CHANNEL_FLAG_UPDATE_CHANNEL_PARAMETERS;
802 S_SYNTH_CHANNEL *pChannel;
833 pChannel = &pSynth->channels[priority[i]];
838 if (pChannel->mip == currentMIP)
839 pChannel->pool = (EAS_U8) currentPool;
845 pSynth->poolAlloc[currentPool] = (EAS_U8) (pChannel->mip - currentMIP);
846 currentMIP = pChannel->mip;
1613 S_SYNTH_CHANNEL *pChannel;
1619 pChannel = &pSynth->channels[channel];
1649 if (pSynth->poolCount[pChannel->pool] != 0)
1749 S_SYNTH_CHANNEL *pChannel;
1756 pChannel = &pSynth->channels[channel];
1759 if (pChannel->channelFlags & CHANNEL_FLAG_MUTE)
1764 if ((pChannel->channelFlags & CHANNEL_FLAG_EXTERNAL_AUDIO) && (pSynth->cbEventFunc != NULL))
1777 regionIndex = pChannel->regionIndex;
1781 if (pChannel->channelFlags & CHANNEL_FLAG_RHYTHM_CHANNEL)
1782 adjustedNote += pChannel->coarsePitch;
1784 adjustedNote += pChannel->coarsePitch + pSynth->globalTranspose;
1870 S_SYNTH_CHANNEL *pChannel;
1873 pChannel = &(pSynth->channels[channel]);
1876 if ((pChannel->channelFlags & CHANNEL_FLAG_EXTERNAL_AUDIO) && (pSynth->cbEventFunc != NULL))
1909 if (pChannel->channelFlags & CHANNEL_FLAG_SUSTAIN_PEDAL)
2077 S_SYNTH_CHANNEL *pChannel = &pCurrSynth->channels[GET_CHANNEL(currChannel)];
2079 if (pSynth->poolCount[pChannel->pool] >= pSynth->poolAlloc[pChannel->pool])
2080 currentPriority += (pSynth->poolCount[pChannel->pool] -pSynth->poolAlloc[pChannel->pool] + 1) << CHANNEL_POLY_STEAL_WEIGHT;
2083 currentPriority += (EAS_I32)(pChannel->pool << CHANNEL_PRIORITY_STEAL_WEIGHT);
2141 S_SYNTH_CHANNEL *pChannel;
2143 pChannel = &(pSynth->channels[channel]);
2144 pChannel->channelPressure = value;
2150 pChannel->channelFlags |= CHANNEL_FLAG_UPDATE_CHANNEL_PARAMETERS;
2183 S_SYNTH_CHANNEL *pChannel;
2185 pChannel = &(pSynth->channels[channel]);
2186 pChannel->pitchBend = (EAS_I16) ((nPitchMSB << 7) | nPitchLSB);
2192 pChannel->channelFlags |= CHANNEL_FLAG_UPDATE_CHANNEL_PARAMETERS;
2215 S_SYNTH_CHANNEL *pChannel;
2217 pChannel = &(pSynth->channels[channel]);
2223 pChannel->channelFlags |= CHANNEL_FLAG_UPDATE_CHANNEL_PARAMETERS;
2232 pChannel->bankNum = value << 8;
2237 pChannel->modWheel = value;
2242 pChannel->volume = value;
2247 pChannel->pan = value;
2252 pChannel->expression = value;
2263 pChannel->bankNum =
2264 (pChannel->bankNum & 0xFF00) | value;
2277 (pChannel->channelFlags & CHANNEL_FLAG_SUSTAIN_PEDAL)
2292 pChannel->channelFlags &= ~CHANNEL_FLAG_SUSTAIN_PEDAL;
2301 (pChannel->channelFlags & CHANNEL_FLAG_SUSTAIN_PEDAL)
2316 pChannel->channelFlags |= CHANNEL_FLAG_SUSTAIN_PEDAL;
2334 pChannel->modWheel = DEFAULT_MOD_WHEEL;
2335 pChannel->expression = DEFAULT_EXPRESSION;
2338 pChannel->channelFlags &= ~CHANNEL_FLAG_SUSTAIN_PEDAL;
2339 pChannel->pitchBend = DEFAULT_PITCH_BEND;
2342 pChannel->channelPressure = DEFAULT_CHANNEL_PRESSURE;
2345 pChannel->registeredParam = DEFAULT_REGISTERED_PARAM;
2346 pChannel->pitchBendSensitivity = DEFAULT_PITCH_BEND_SENSITIVITY;
2347 pChannel->finePitch = DEFAULT_FINE_PITCH;
2348 pChannel->coarsePitch = DEFAULT_COARSE_PITCH;
2424 S_SYNTH_CHANNEL *pChannel;
2435 pChannel = &(pSynth->channels[channel]);
2441 pChannel->registeredParam = DEFAULT_REGISTERED_PARAM;
2444 pChannel->registeredParam =
2445 (pChannel->registeredParam & 0x7F) | (value<<7);
2448 pChannel->registeredParam =
2449 (pChannel->registeredParam & 0x7F00) | value;
2452 switch (pChannel->registeredParam)
2455 pChannel->pitchBendSensitivity = value * 100;
2459 pChannel->finePitch = (EAS_I8)((((value << 7) - 8192) * 100) >> 13);
2462 pChannel->coarsePitch = (EAS_I8)(value - 64);
2469 switch (pChannel->registeredParam)
2689 S_SYNTH_CHANNEL *pChannel;
2698 pChannel = &pSynth->channels[channel];
2699 bank = pChannel->bankNum;
2705 pChannel->channelFlags |= CHANNEL_FLAG_RHYTHM_CHANNEL;
2710 pChannel->channelFlags &= ~CHANNEL_FLAG_RHYTHM_CHANNEL;
2724 pChannel->channelFlags |= CHANNEL_FLAG_EXTERNAL_AUDIO;
2760 pChannel->programNum = program;
2761 pChannel->regionIndex = regionIndex;
2767 pChannel->channelFlags |= CHANNEL_FLAG_UPDATE_CHANNEL_PARAMETERS;