Lines Matching refs:pEASData
64 * pEASData - instance data
73 EAS_RESULT EAS_MixEngineInit (S_EAS_DATA *pEASData)
77 if (pEASData->staticMemoryModel)
78 pEASData->pMixBuffer = EAS_CMEnumData(EAS_CM_MIX_BUFFER);
80 pEASData->pMixBuffer = EAS_HWMalloc(pEASData->hwInstData, BUFFER_SIZE_IN_MONO_SAMPLES * NUM_OUTPUT_CHANNELS * sizeof(EAS_I32));
81 if (pEASData->pMixBuffer == NULL)
86 EAS_HWMemSet((void *)(pEASData->pMixBuffer), 0, BUFFER_SIZE_IN_MONO_SAMPLES * NUM_OUTPUT_CHANNELS * sizeof(EAS_I32));
107 void EAS_MixEnginePrep (S_EAS_DATA *pEASData, EAS_I32 numSamples)
112 EAS_HWMemSet(pEASData->pMixBuffer, 0, numSamples * (EAS_I32) sizeof(long) * 2);
114 EAS_HWMemSet(pEASData->pMixBuffer, 0, (EAS_I32) numSamples * (EAS_I32) sizeof(long));
135 void EAS_MixEnginePost (S_EAS_DATA *pEASData, EAS_I32 numSamples)
143 if (pEASData->effectsModules[EAS_MODULE_MAXIMIZER].effect)
146 temp = MaximizerProcess(pEASData->effectsModules[EAS_MODULE_MAXIMIZER].effectData, pEASData->pMixBuffer, pEASData->pMixBuffer, numSamples);
147 temp = (temp * pEASData->masterGain) >> 15;
154 gain = (EAS_U16) pEASData->masterGain;
156 gain = (EAS_U16) pEASData->masterGain;
163 if (pEASData->effectsModules[EAS_MODULE_COMPRESSOR].effectData)
173 SynthMasterGain(pEASData->pMixBuffer, pEASData->pOutputAudioBuffer, gain, (EAS_U16) ((EAS_U16) numSamples * 2));
175 SynthMasterGain(pEASData->pMixBuffer, pEASData->pOutputAudioBuffer, gain, (EAS_U16) numSamples);
180 if (pEASData->effectsModules[EAS_MODULE_ENHANCER].effectData)
181 (*pEASData->effectsModules[EAS_MODULE_ENHANCER].effect->pfProcess)
182 (pEASData->effectsModules[EAS_MODULE_ENHANCER].effectData,
183 pEASData->pOutputAudioBuffer,
184 pEASData->pOutputAudioBuffer,
190 if (pEASData->effectsModules[EAS_MODULE_GRAPHIC_EQ].effectData)
191 (*pEASData->effectsModules[EAS_MODULE_GRAPHIC_EQ].effect->pfProcess)
192 (pEASData->effectsModules[EAS_MODULE_GRAPHIC_EQ].effectData,
193 pEASData->pOutputAudioBuffer,
194 pEASData->pOutputAudioBuffer,
200 if (pEASData->effectsModules[EAS_MODULE_COMPRESSOR].effectData)
201 (*pEASData->effectsModules[EAS_MODULE_COMPRESSOR].effect->pfProcess)
202 (pEASData->effectsModules[EAS_MODULE_COMPRESSOR].effectData,
203 pEASData->pOutputAudioBuffer,
204 pEASData->pOutputAudioBuffer,
213 if (pEASData->effectsModules[EAS_MODULE_WOW].effectData)
214 (*pEASData->effectsModules[EAS_MODULE_WOW].effect->pfProcess)
215 (pEASData->effectsModules[EAS_MODULE_WOW].effectData,
216 pEASData->pOutputAudioBuffer,
217 (EAS_PCM*) pEASData->pMixBuffer,
223 if (pEASData->effectsModules[EAS_MODULE_TONECONTROLEQ].effectData)
224 (*pEASData->effectsModules[EAS_MODULE_TONECONTROLEQ].effect->pfProcess)
225 (pEASData->effectsModules[EAS_MODULE_TONECONTROLEQ].effectData,
226 pEASData->pOutputAudioBuffer,
227 pEASData->pOutputAudioBuffer,
233 if (pEASData->effectsModules[EAS_MODULE_REVERB].effectData)
234 (*pEASData->effectsModules[EAS_MODULE_REVERB].effect->pfProcess)
235 (pEASData->effectsModules[EAS_MODULE_REVERB].effectData,
236 pEASData->pOutputAudioBuffer,
237 pEASData->pOutputAudioBuffer,
243 if (pEASData->effectsModules[EAS_MODULE_CHORUS].effectData)
244 (*pEASData->effectsModules[EAS_MODULE_CHORUS].effect->pfProcess)
245 (pEASData->effectsModules[EAS_MODULE_CHORUS].effectData,
246 pEASData->pOutputAudioBuffer,
247 pEASData->pOutputAudioBuffer,
301 * pEASData - instance data
310 EAS_RESULT EAS_MixEngineShutdown (S_EAS_DATA *pEASData)
314 if (!pEASData->staticMemoryModel && (pEASData->pMixBuffer != NULL))
315 EAS_HWFree(pEASData->hwInstData, pEASData->pMixBuffer);