Lines Matching refs:pRvbModule
158 reverb_module_t *pRvbModule = (reverb_module_t *)handle; in EffectRelease() local
165 pRvbModule->context.mState = REVERB_STATE_UNINITIALIZED; in EffectRelease()
167 free(pRvbModule); in EffectRelease()
198 reverb_module_t *pRvbModule = (reverb_module_t *)self; in Reverb_Process() local
200 if (pRvbModule == NULL) { in Reverb_Process()
210 pReverb = (reverb_object_t*) &pRvbModule->context; in Reverb_Process()
226 if (pRvbModule->config.inputCfg.channels == pRvbModule->config.outputCfg.channels) { in Reverb_Process()
284 reverb_module_t *pRvbModule = (reverb_module_t *) self; in Reverb_Command() local
288 if (pRvbModule == NULL || in Reverb_Command()
289 pRvbModule->context.mState == REVERB_STATE_UNINITIALIZED) { in Reverb_Command()
293 pReverb = (reverb_object_t*) &pRvbModule->context; in Reverb_Command()
302 *(int *) pReplyData = Reverb_Init(pRvbModule, pReverb->m_Aux, pReverb->m_Preset); in Reverb_Command()
304 pRvbModule->context.mState = REVERB_STATE_INITIALIZED; in Reverb_Command()
312 *(int *) pReplyData = Reverb_setConfig(pRvbModule, in Reverb_Command()
319 Reverb_getConfig(pRvbModule, (effect_config_t *) pCmdData); in Reverb_Command()
404 reverb_module_t *pRvbModule = (reverb_module_t *) self; in Reverb_GetDescriptor() local
408 if (pRvbModule == NULL || in Reverb_GetDescriptor()
409 pRvbModule->context.mState == REVERB_STATE_UNINITIALIZED) { in Reverb_GetDescriptor()
413 pReverb = (reverb_object_t*) &pRvbModule->context; in Reverb_GetDescriptor()
456 int Reverb_Init(reverb_module_t *pRvbModule, int aux, int preset) { in Reverb_Init() argument
459 ALOGV("Reverb_Init module %p, aux: %d, preset: %d", pRvbModule,aux, preset); in Reverb_Init()
461 memset(&pRvbModule->context, 0, sizeof(reverb_object_t)); in Reverb_Init()
463 pRvbModule->context.m_Aux = (uint16_t)aux; in Reverb_Init()
464 pRvbModule->context.m_Preset = (uint16_t)preset; in Reverb_Init()
466 pRvbModule->config.inputCfg.samplingRate = 44100; in Reverb_Init()
468 pRvbModule->config.inputCfg.channels = AUDIO_CHANNEL_OUT_MONO; in Reverb_Init()
470 pRvbModule->config.inputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in Reverb_Init()
472 pRvbModule->config.inputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in Reverb_Init()
473 pRvbModule->config.inputCfg.bufferProvider.getBuffer = NULL; in Reverb_Init()
474 pRvbModule->config.inputCfg.bufferProvider.releaseBuffer = NULL; in Reverb_Init()
475 pRvbModule->config.inputCfg.bufferProvider.cookie = NULL; in Reverb_Init()
476 pRvbModule->config.inputCfg.accessMode = EFFECT_BUFFER_ACCESS_READ; in Reverb_Init()
477 pRvbModule->config.inputCfg.mask = EFFECT_CONFIG_ALL; in Reverb_Init()
478 pRvbModule->config.outputCfg.samplingRate = 44100; in Reverb_Init()
479 pRvbModule->config.outputCfg.channels = AUDIO_CHANNEL_OUT_STEREO; in Reverb_Init()
480 pRvbModule->config.outputCfg.format = AUDIO_FORMAT_PCM_16_BIT; in Reverb_Init()
481 pRvbModule->config.outputCfg.bufferProvider.getBuffer = NULL; in Reverb_Init()
482 pRvbModule->config.outputCfg.bufferProvider.releaseBuffer = NULL; in Reverb_Init()
483 pRvbModule->config.outputCfg.bufferProvider.cookie = NULL; in Reverb_Init()
484 pRvbModule->config.outputCfg.accessMode = EFFECT_BUFFER_ACCESS_ACCUMULATE; in Reverb_Init()
485 pRvbModule->config.outputCfg.mask = EFFECT_CONFIG_ALL; in Reverb_Init()
487 ret = Reverb_setConfig(pRvbModule, &pRvbModule->config, true); in Reverb_Init()
489 ALOGV("Reverb_Init error %d on module %p", ret, pRvbModule); in Reverb_Init()
513 int Reverb_setConfig(reverb_module_t *pRvbModule, effect_config_t *pConfig, in Reverb_setConfig() argument
515 reverb_object_t *pReverb = &pRvbModule->context; in Reverb_setConfig()
535 pRvbModule->config = *pConfig; in Reverb_setConfig()
537 pReverb->m_nSamplingRate = pRvbModule->config.outputCfg.samplingRate; in Reverb_setConfig()
631 void Reverb_getConfig(reverb_module_t *pRvbModule, effect_config_t *pConfig) in Reverb_getConfig() argument
633 *pConfig = pRvbModule->config; in Reverb_getConfig()