1 /* Copyright 2018 The Chromium OS Authors. All rights reserved. 2 * Use of this source code is governed by a BSD-style license that can be 3 * found in the LICENSE file. 4 */ 5 6 #ifndef APM_CONFIG_H_ 7 #define APM_CONFIG_H_ 8 9 #include <webrtc-apm/webrtc_apm.h> 10 #include <webrtc-apm/webrtc_apm.h> 11 12 #define APM_RESIDUAL_ECHO_DETECTOR_ENABLED "apm:residual_echo_detector_enabled" 13 #define APM_RESIDUAL_ECHO_DETECTOR_ENABLED_VALUE 1 14 #define APM_HIGH_PASS_FILTER_ENABLED "apm:high_pass_filter_enabled" 15 #define APM_HIGH_PASS_FILTER_ENABLED_VALUE 0 16 #define APM_PRE_AMPLIFIER_ENABLED "apm:pre_amplifier_enabled" 17 #define APM_PRE_AMPLIFIER_ENABLED_VALUE 0 18 #define APM_PRE_AMPLIFIER_FIXED_GAIN_FACTOR "apm:pre_amplifier_fixed_gain_factor" 19 #define APM_PRE_AMPLIFIER_FIXED_GAIN_FACTOR_VALUE 1.f 20 #define APM_GAIN_CONTROLLER2_ENABLED "apm:gain_controller2_enabled" 21 #define APM_GAIN_CONTROLLER2_ENABLED_VALUE 0 22 #define APM_GAIN_CONTROLLER2_FIXED_GAIN_DB "apm:gain_controller2_fixed_gain_db" 23 #define APM_GAIN_CONTROLLER2_FIXED_GAIN_DB_VALUE 0.f 24 #define APM_GAIN_CONTROLLER2_ADAPTIVE_DIGITAL_MODE "apm:gain_controller2_adaptive_digital_mode" 25 #define APM_GAIN_CONTROLLER2_ADAPTIVE_DIGITAL_MODE_VALUE 1 26 #define APM_GAIN_CONTROL_COMPRESSION_GAIN_DB "apm:gain_control_compression_gain_db" 27 #define APM_GAIN_CONTROL_COMPRESSION_GAIN_DB_VALUE 9 28 /* 0: adaptive analog, 1: adaptive digital, 2: fixed digital */ 29 #define APM_GAIN_CONTROL_MODE "apm:gain_control_mode" 30 #define APM_GAIN_CONTROL_MODE_VALUE 0 31 #define APM_GAIN_CONTROL_ENABLED "apm:gain_control_enabled" 32 #define APM_GAIN_CONTROL_ENABLED_VALUE 0 33 /* 0: low, 1: moderate, 2: high, 3: very high*/ 34 #define APM_NOISE_SUPPRESSION_LEVEL "apm:noise_suppression_level" 35 #define APM_NOISE_SUPPRESSION_LEVEL_VALUE 0 36 #define APM_NOISE_SUPPRESSION_ENABLED "apm:noise_suppression_enabled" 37 #define APM_NOISE_SUPPRESSION_ENABLED_VALUE 0 38 39 /* Gets apm config from given config directory. */ 40 struct apm_config *apm_config_get(const char *device_config_dir); 41 42 /* Prints config content to syslog. */ 43 void apm_config_dump(struct apm_config *config); 44 45 #endif /* APM_CONFIG_H_ */ 46