Lines Matching refs:pDwmModule
73 static int Downmix_Init(downmix_module_t *pDwmModule);
74 static int Downmix_Configure(downmix_module_t *pDwmModule, effect_config_t *pConfig, bool init);
276 downmix_module_t *pDwmModule = (downmix_module_t *)handle; in DownmixLib_Release() local
283 pDwmModule->context.state = DOWNMIX_STATE_UNINITIALIZED; in DownmixLib_Release()
285 delete pDwmModule; in DownmixLib_Release()
319 downmix_module_t *pDwmModule = (downmix_module_t *)self; in Downmix_Process() local
321 if (pDwmModule == NULL) { in Downmix_Process()
331 pDownmixer = (downmix_object_t*) &pDwmModule->context; in Downmix_Process()
346 (pDwmModule->config.outputCfg.accessMode == EFFECT_BUFFER_ACCESS_ACCUMULATE); in Downmix_Process()
347 const uint32_t downmixInputChannelMask = pDwmModule->config.inputCfg.channels; in Downmix_Process()
416 downmix_module_t *pDwmModule = (downmix_module_t *) self; in Downmix_Command() local
419 if (pDwmModule == NULL || pDwmModule->context.state == DOWNMIX_STATE_UNINITIALIZED) { in Downmix_Command()
423 pDownmixer = (downmix_object_t*) &pDwmModule->context; in Downmix_Command()
432 *(int *) pReplyData = Downmix_Init(pDwmModule); in Downmix_Command()
440 *(int *) pReplyData = Downmix_Configure(pDwmModule, in Downmix_Command()
605 static int Downmix_Init(downmix_module_t *pDwmModule) { in Downmix_Init() argument
607 ALOGV("Downmix_Init module %p", pDwmModule); in Downmix_Init()
610 memset(&pDwmModule->context, 0, sizeof(downmix_object_t)); in Downmix_Init()
612 pDwmModule->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in Downmix_Init()
613 pDwmModule->config.inputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in Downmix_Init()
614 pDwmModule->config.inputCfg.channels = AUDIO_CHANNEL_OUT_7POINT1; in Downmix_Init()
615 pDwmModule->config.inputCfg.bufferProvider.getBuffer = NULL; in Downmix_Init()
616 pDwmModule->config.inputCfg.bufferProvider.releaseBuffer = NULL; in Downmix_Init()
617 pDwmModule->config.inputCfg.bufferProvider.cookie = NULL; in Downmix_Init()
618 pDwmModule->config.inputCfg.mask = EFFECT_CONFIG_ALL; in Downmix_Init()
620 pDwmModule->config.inputCfg.samplingRate = 44100; in Downmix_Init()
621 pDwmModule->config.outputCfg.samplingRate = pDwmModule->config.inputCfg.samplingRate; in Downmix_Init()
624 pDwmModule->config.outputCfg.accessMode = EFFECT_BUFFER_ACCESS_ACCUMULATE; in Downmix_Init()
625 pDwmModule->config.outputCfg.format = AUDIO_FORMAT_PCM_FLOAT; in Downmix_Init()
626 pDwmModule->config.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in Downmix_Init()
627 pDwmModule->config.outputCfg.bufferProvider.getBuffer = NULL; in Downmix_Init()
628 pDwmModule->config.outputCfg.bufferProvider.releaseBuffer = NULL; in Downmix_Init()
629 pDwmModule->config.outputCfg.bufferProvider.cookie = NULL; in Downmix_Init()
630 pDwmModule->config.outputCfg.mask = EFFECT_CONFIG_ALL; in Downmix_Init()
632 ret = Downmix_Configure(pDwmModule, &pDwmModule->config, true); in Downmix_Init()
634 ALOGV("Downmix_Init error %d on module %p", ret, pDwmModule); in Downmix_Init()
636 pDwmModule->context.state = DOWNMIX_STATE_INITIALIZED; in Downmix_Init()
665 static int Downmix_Configure(downmix_module_t *pDwmModule, effect_config_t *pConfig, bool init) { in Downmix_Configure() argument
667 downmix_object_t *pDownmixer = &pDwmModule->context; in Downmix_Configure()
678 if (&pDwmModule->config != pConfig) { in Downmix_Configure()
679 memcpy(&pDwmModule->config, pConfig, sizeof(effect_config_t)); in Downmix_Configure()