Lines Matching refs:pInstance
52 LVCS_Instance_t *pInstance =(LVCS_Instance_t *)hInstance;
54 *pParams = pInstance->Params;
83 LVCS_Instance_t *pInstance =(LVCS_Instance_t *)hInstance;
85 LVCS_Modes_en OperatingModeSave = pInstance->Params.OperatingMode;
87 if (pParams->SampleRate != pInstance->Params.SampleRate)
89 pInstance->TimerParams.SamplingRate = LVCS_SampleRateTable[pParams->SampleRate];
95 if(pInstance->Params.ReverbLevel != pParams->ReverbLevel)
103 if ((pInstance->Params.SampleRate != pParams->SampleRate) ||
104 (pInstance->Params.SpeakerType != pParams->SpeakerType))
111 pInstance->OutputDevice = LVCS_HEADPHONE;
120 pInstance->VolCorrect = pLVCS_VolCorrectTable[Offset];
122 pInstance->CompressGain = pInstance->VolCorrect.CompMin;
124 LVC_Mixer_Init(&pInstance->BypassMix.Mixer_Instance.MixerStream[0],0,0);
136 Gain = (Gain * pInstance->VolCorrect.GainMin) >>12;
138 LVC_Mixer_Init(&pInstance->BypassMix.Mixer_Instance.MixerStream[1],0,Gain);
139 LVC_Mixer_VarSlope_SetTimeConstant(&pInstance->BypassMix.Mixer_Instance.MixerStream[0],
141 LVC_Mixer_VarSlope_SetTimeConstant(&pInstance->BypassMix.Mixer_Instance.MixerStream[1],
165 else if ((pInstance->Params.EffectLevel != pParams->EffectLevel) ||
166 (pInstance->Params.SourceFormat != pParams->SourceFormat))
177 pInstance->VolCorrect = pLVCS_VolCorrectTable[Offset];
190 pInstance->Params = *pParams;
196 pInstance->Params = *pParams;
200 (pInstance->bInOperatingModeTransition == LVM_TRUE)){
203 if(pInstance->bInOperatingModeTransition != LVM_TRUE){
204 pInstance->bTimerDone = LVM_FALSE;
205 pInstance->TimerParams.TimeInMs =
206 (LVM_INT16)(((pInstance->Reverberation.DelaySize << 2)
207 /pInstance->TimerParams.SamplingRate) + 1);
208 LVM_Timer_Init ( &pInstance->TimerInstance,
209 &pInstance->TimerParams);
218 pInstance->MSTarget0=LVM_MAXINT_16;
219 pInstance->MSTarget1=0;
223 pInstance->Params.OperatingMode = OperatingModeSave;
224 pInstance->MSTarget1=LVM_MAXINT_16;
225 pInstance->MSTarget0=0;
230 pInstance->bInOperatingModeTransition = LVM_TRUE;
246 LVCS_Instance_t *pInstance = (LVCS_Instance_t *)hInstance;
255 pInstance->bTimerDone = LVM_TRUE;