Home | History | Annotate | Download | only in src

Lines Matching refs:Gain

46 /*  The overall gain of the processed path is set by the gains in the individual    */
47 /* processing blocks and by the effect level gain. */
49 /* The unprocessed path must have matching gain for the processed path to ensure */
53 /* The overall gain is corrected by a combination of a shift with saturation and a */
55 /* and also corrects for any excess gain in the shift. */
73 LVM_UINT32 Gain;
81 * Set the transition gain
97 * Calculate the output gain table offset
103 * Setup the mixer gain for the processed path
105 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * pInstance->TransitionGain);
112 LVC_Mixer_Init(&pConfig->Mixer_Instance.MixerStream[0],(LVM_INT32)(Gain >> 15),Current);
115 * Setup the mixer gain for the unprocessed path
117 Gain = (LVM_UINT32)(pOutputGainTable[Offset].Loss * (0x7FFF - pInstance->TransitionGain));
118 Gain = (LVM_UINT32)pOutputGainTable[Offset].UnprocLoss * (Gain >> 15);
120 LVC_Mixer_Init(&pConfig->Mixer_Instance.MixerStream[1],(LVM_INT32)(Gain >> 15),Current);
128 * Setup the output gain shift
134 * Correct gain for the effect level
145 * Calculate the gain correction
154 * Apply the gain correction and shift, note the result is in Q3.13 format
168 * Set the gain values
189 /* overall system gain and allow progressive control of the Concert Sound effect. */
192 /* without gain correction. */
233 * Apply output gain correction shift