Lines Matching refs:pDwmModule

268     downmix_module_t *pDwmModule = (downmix_module_t *)handle;  in DownmixLib_Release()  local
275 pDwmModule->context.state = DOWNMIX_STATE_UNINITIALIZED; in DownmixLib_Release()
277 free(pDwmModule); in DownmixLib_Release()
312 downmix_module_t *pDwmModule = (downmix_module_t *)self; in Downmix_Process() local
314 if (pDwmModule == NULL) { in Downmix_Process()
324 pDownmixer = (downmix_object_t*) &pDwmModule->context; in Downmix_Process()
339 (pDwmModule->config.outputCfg.accessMode == EFFECT_BUFFER_ACCESS_ACCUMULATE); in Downmix_Process()
340 const uint32_t downmixInputChannelMask = pDwmModule->config.inputCfg.channels; in Downmix_Process()
411 downmix_module_t *pDwmModule = (downmix_module_t *)self; in Downmix_Process() local
413 if (pDwmModule == NULL) { in Downmix_Process()
423 pDownmixer = (downmix_object_t*) &pDwmModule->context; in Downmix_Process()
438 (pDwmModule->config.outputCfg.accessMode == EFFECT_BUFFER_ACCESS_ACCUMULATE); in Downmix_Process()
439 const uint32_t downmixInputChannelMask = pDwmModule->config.inputCfg.channels; in Downmix_Process()
509 downmix_module_t *pDwmModule = (downmix_module_t *) self; in Downmix_Command() local
512 if (pDwmModule == NULL || pDwmModule->context.state == DOWNMIX_STATE_UNINITIALIZED) { in Downmix_Command()
516 pDownmixer = (downmix_object_t*) &pDwmModule->context; in Downmix_Command()
525 *(int *) pReplyData = Downmix_Init(pDwmModule); in Downmix_Command()
533 *(int *) pReplyData = Downmix_Configure(pDwmModule, in Downmix_Command()
698 int Downmix_Init(downmix_module_t *pDwmModule) { in Downmix_Init() argument
700 ALOGV("Downmix_Init module %p", pDwmModule); in Downmix_Init()
703 memset(&pDwmModule->context, 0, sizeof(downmix_object_t)); in Downmix_Init()
705 pDwmModule->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in Downmix_Init()
706 pDwmModule->config.inputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in Downmix_Init()
707 pDwmModule->config.inputCfg.channels = AUDIO_CHANNEL_OUT_7POINT1; in Downmix_Init()
708 pDwmModule->config.inputCfg.bufferProvider.getBuffer = NULL; in Downmix_Init()
709 pDwmModule->config.inputCfg.bufferProvider.releaseBuffer = NULL; in Downmix_Init()
710 pDwmModule->config.inputCfg.bufferProvider.cookie = NULL; in Downmix_Init()
711 pDwmModule->config.inputCfg.mask = EFFECT_CONFIG_ALL; in Downmix_Init()
713 pDwmModule->config.inputCfg.samplingRate = 44100; in Downmix_Init()
714 pDwmModule->config.outputCfg.samplingRate = pDwmModule->config.inputCfg.samplingRate; in Downmix_Init()
717 pDwmModule->config.outputCfg.accessMode = EFFECT_BUFFER_ACCESS_ACCUMULATE; in Downmix_Init()
718 pDwmModule->config.outputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in Downmix_Init()
719 pDwmModule->config.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in Downmix_Init()
720 pDwmModule->config.outputCfg.bufferProvider.getBuffer = NULL; in Downmix_Init()
721 pDwmModule->config.outputCfg.bufferProvider.releaseBuffer = NULL; in Downmix_Init()
722 pDwmModule->config.outputCfg.bufferProvider.cookie = NULL; in Downmix_Init()
723 pDwmModule->config.outputCfg.mask = EFFECT_CONFIG_ALL; in Downmix_Init()
725 ret = Downmix_Configure(pDwmModule, &pDwmModule->config, true); in Downmix_Init()
727 ALOGV("Downmix_Init error %d on module %p", ret, pDwmModule); in Downmix_Init()
729 pDwmModule->context.state = DOWNMIX_STATE_INITIALIZED; in Downmix_Init()
758 int Downmix_Configure(downmix_module_t *pDwmModule, effect_config_t *pConfig, bool init) { in Downmix_Configure() argument
760 downmix_object_t *pDownmixer = &pDwmModule->context; in Downmix_Configure()
771 if (&pDwmModule->config != pConfig) { in Downmix_Configure()
772 memcpy(&pDwmModule->config, pConfig, sizeof(effect_config_t)); in Downmix_Configure()