Home | History | Annotate | Download | only in preprocessing

Lines Matching refs:agc

261 // Automatic Gain Control (AGC)
271 webrtc::GainControl *agc = static_cast<webrtc::GainControl *>(effect->engine);
272 agc->set_mode(webrtc::GainControl::kFixedDigital);
273 agc->set_target_level_dbfs(kAgcDefaultTargetLevel);
274 agc->set_compression_gain_db(kAgcDefaultCompGain);
275 agc->enable_limiter(kAgcDefaultLimiter);
281 webrtc::GainControl *agc = effect->session->apm->gain_control();
282 ALOGV("AgcCreate got agc %p", agc);
283 if (agc == NULL) {
287 effect->engine = static_cast<preproc_fx_handle_t>(agc);
300 webrtc::GainControl *agc = static_cast<webrtc::GainControl *>(effect->engine);
331 *(int16_t *) pValue = (int16_t)(agc->target_level_dbfs() * -100);
335 *(int16_t *) pValue = (int16_t)(agc->compression_gain_db() * 100);
339 *(bool *) pValue = (bool)agc->is_limiter_enabled();
344 pProperties->targetLevel = (int16_t)(agc->target_level_dbfs() * -100);
345 pProperties->compGain = (int16_t)(agc->compression_gain_db() * 100);
346 pProperties->limiterEnabled = (bool)agc->is_limiter_enabled();
361 webrtc::GainControl *agc = static_cast<webrtc::GainControl *>(effect->engine);
366 status = agc->set_target_level_dbfs(-(*(int16_t *)pValue / 100));
370 status = agc->set_compression_gain_db(*(int16_t *)pValue / 100);
374 status = agc->enable_limiter(*(bool *)pValue);
381 status = agc->set_target_level_dbfs(-(pProperties->targetLevel / 100));
383 status = agc->set_compression_gain_db(pProperties->compGain / 100);
385 status = agc->enable_limiter(pProperties->limiterEnabled);
400 webrtc::GainControl *agc = static_cast<webrtc::GainControl *>(effect->engine);
401 ALOGV("AgcEnable agc %p", agc);
402 agc->Enable(true);
408 webrtc::GainControl *agc = static_cast<webrtc::GainControl *>(effect->engine);
409 agc->Enable(false);