Lines Matching refs:pConfig
134 int Visualizer_setConfig(VisualizerContext *pContext, effect_config_t *pConfig) in Visualizer_setConfig() argument
138 if (pConfig->inputCfg.samplingRate != pConfig->outputCfg.samplingRate) return -EINVAL; in Visualizer_setConfig()
139 if (pConfig->inputCfg.channels != pConfig->outputCfg.channels) return -EINVAL; in Visualizer_setConfig()
140 if (pConfig->inputCfg.format != pConfig->outputCfg.format) return -EINVAL; in Visualizer_setConfig()
141 if (pConfig->inputCfg.channels != AUDIO_CHANNEL_OUT_STEREO) return -EINVAL; in Visualizer_setConfig()
142 if (pConfig->outputCfg.accessMode != EFFECT_BUFFER_ACCESS_WRITE && in Visualizer_setConfig()
143 pConfig->outputCfg.accessMode != EFFECT_BUFFER_ACCESS_ACCUMULATE) return -EINVAL; in Visualizer_setConfig()
144 if (pConfig->inputCfg.format != AUDIO_FORMAT_PCM_16_BIT) return -EINVAL; in Visualizer_setConfig()
146 pContext->mConfig = *pConfig; in Visualizer_setConfig()
168 void Visualizer_getConfig(VisualizerContext *pContext, effect_config_t *pConfig) in Visualizer_getConfig() argument
170 *pConfig = pContext->mConfig; in Visualizer_getConfig()