Lines Matching refs:pContext
209 int LvmBundle_init(struct EffectContext* pContext, LVM_ControlParams_t* params) { in LvmBundle_init() argument
212 pContext->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in LvmBundle_init()
213 pContext->config.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in LvmBundle_init()
214 pContext->config.inputCfg.format = EFFECT_BUFFER_FORMAT; in LvmBundle_init()
215 pContext->config.inputCfg.samplingRate = 44100; in LvmBundle_init()
216 pContext->config.inputCfg.bufferProvider.getBuffer = NULL; in LvmBundle_init()
217 pContext->config.inputCfg.bufferProvider.releaseBuffer = NULL; in LvmBundle_init()
218 pContext->config.inputCfg.bufferProvider.cookie = NULL; in LvmBundle_init()
219 pContext->config.inputCfg.mask = EFFECT_CONFIG_ALL; in LvmBundle_init()
220 pContext->config.outputCfg.accessMode = EFFECT_BUFFER_ACCESS_ACCUMULATE; in LvmBundle_init()
221 pContext->config.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in LvmBundle_init()
222 pContext->config.outputCfg.format = EFFECT_BUFFER_FORMAT; in LvmBundle_init()
223 pContext->config.outputCfg.samplingRate = 44100; in LvmBundle_init()
224 pContext->config.outputCfg.bufferProvider.getBuffer = NULL; in LvmBundle_init()
225 pContext->config.outputCfg.bufferProvider.releaseBuffer = NULL; in LvmBundle_init()
226 pContext->config.outputCfg.bufferProvider.cookie = NULL; in LvmBundle_init()
227 pContext->config.outputCfg.mask = EFFECT_CONFIG_ALL; in LvmBundle_init()
229 if (pContext->pBundledContext->hInstance != NULL) { in LvmBundle_init()
232 LVM_DelInstanceHandle(&pContext->pBundledContext->hInstance); in LvmBundle_init()
250 LvmStatus = LVM_GetInstanceHandle(&pContext->pBundledContext->hInstance, &InstParams); in LvmBundle_init()
266 pContext->pBundledContext->SampleRate = LVM_FS_44100; in LvmBundle_init()
308 LvmStatus = LVM_SetControlParameters(pContext->pBundledContext->hInstance, params); in LvmBundle_init()
327 LvmStatus = LVM_SetHeadroomParams(pContext->pBundledContext->hInstance, &HeadroomParams); in LvmBundle_init()
338 int lvmCreate(struct EffectContext* pContext, lvmConfigParams_t* plvmConfigParams, in lvmCreate() argument
341 pContext->pBundledContext = NULL; in lvmCreate()
342 pContext->pBundledContext = (BundledEffectContext*)malloc(sizeof(struct BundledEffectContext)); in lvmCreate()
343 if (NULL == pContext->pBundledContext) { in lvmCreate()
347 pContext->pBundledContext->SessionNo = 0; in lvmCreate()
348 pContext->pBundledContext->SessionId = 0; in lvmCreate()
349 pContext->pBundledContext->hInstance = NULL; in lvmCreate()
350 pContext->pBundledContext->bVolumeEnabled = LVM_FALSE; in lvmCreate()
351 pContext->pBundledContext->bEqualizerEnabled = LVM_FALSE; in lvmCreate()
352 pContext->pBundledContext->bBassEnabled = LVM_FALSE; in lvmCreate()
353 pContext->pBundledContext->bBassTempDisabled = LVM_FALSE; in lvmCreate()
354 pContext->pBundledContext->bVirtualizerEnabled = LVM_FALSE; in lvmCreate()
355 pContext->pBundledContext->bVirtualizerTempDisabled = LVM_FALSE; in lvmCreate()
356 pContext->pBundledContext->nOutputDevice = AUDIO_DEVICE_NONE; in lvmCreate()
357 pContext->pBundledContext->nVirtualizerForcedDevice = AUDIO_DEVICE_NONE; in lvmCreate()
358 pContext->pBundledContext->NumberEffectsEnabled = 0; in lvmCreate()
359 pContext->pBundledContext->NumberEffectsCalled = 0; in lvmCreate()
360 pContext->pBundledContext->firstVolume = LVM_TRUE; in lvmCreate()
361 pContext->pBundledContext->volume = 0; in lvmCreate()
369 pContext->pBundledContext->BassStrengthSaved = 0; in lvmCreate()
370 pContext->pBundledContext->VirtStrengthSaved = 0; in lvmCreate()
371 pContext->pBundledContext->CurPreset = PRESET_CUSTOM; in lvmCreate()
372 pContext->pBundledContext->levelSaved = 0; in lvmCreate()
373 pContext->pBundledContext->bMuteEnabled = LVM_FALSE; in lvmCreate()
374 pContext->pBundledContext->bStereoPositionEnabled = LVM_FALSE; in lvmCreate()
375 pContext->pBundledContext->positionSaved = 0; in lvmCreate()
376 pContext->pBundledContext->workBuffer = NULL; in lvmCreate()
377 pContext->pBundledContext->frameCount = -1; in lvmCreate()
378 pContext->pBundledContext->SamplesToExitCountVirt = 0; in lvmCreate()
379 pContext->pBundledContext->SamplesToExitCountBb = 0; in lvmCreate()
380 pContext->pBundledContext->SamplesToExitCountEq = 0; in lvmCreate()
382 pContext->pBundledContext->bandGaindB[i] = EQNB_5BandSoftPresets[i]; in lvmCreate()
384 pContext->config.inputCfg.channels = plvmConfigParams->nrChannels; in lvmCreate()
386 ret = LvmBundle_init(pContext, params); in lvmCreate()
395 int lvmControl(struct EffectContext* pContext, lvmConfigParams_t* plvmConfigParams, in lvmControl() argument
454 LvmStatus = LVM_SetControlParameters(pContext->pBundledContext->hInstance, params); in lvmControl()
459 LvmStatus = LVM_ApplyNewSettings(pContext->pBundledContext->hInstance); in lvmControl()
466 int lvmExecute(float* floatIn, float* floatOut, struct EffectContext* pContext, in lvmExecute() argument
469 return LVM_Process(pContext->pBundledContext->hInstance, /* Instance handle */ in lvmExecute()
476 int lvmMainProcess(EffectContext* pContext, LVM_ControlParams_t* pParams, in lvmMainProcess() argument
478 int errCode = lvmControl(pContext, plvmConfigParams, pParams); in lvmMainProcess()
514 errCode = lvmExecute(floatIn.data(), floatOut.data(), pContext, plvmConfigParams); in lvmMainProcess()