modules/audio_processing/gain_control_impl.cc
// TODO(ajm): ensure this is called under kAdaptiveAnalog.
ensure this is called under kAdaptiveAnalog.
ensure this is called under kAdaptiveAnalog .
int GainControlImpl::set_stream_analog_level(int level) {
  CriticalSectionScoped crit_scoped(crit_);
  was_analog_level_set_ = true;
  if (level < minimum_capture_level_ || level > maximum_capture_level_) {
    return apm_->kBadParameterError;
  }
  analog_capture_level_ = level;
  return apm_->kNoError;
}
int GainControlImpl :: set_stream_analog_level ( int level ) { CriticalSectionScoped crit_scoped ( crit_ ) ; was_analog_level_set_ = true ; if ( level < minimum_capture_level_ || level > maximum_capture_level_ ) { return apm_ -> kBadParameterError ; } analog_capture_level_ = level ; return apm_ -> kNoError ; }
TODO(ajm): ensure this is called under kAdaptiveAnalog.
TODO ( ajm ) : ensure this is called under kAdaptiveAnalog .