| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 // introduced, it is prone to change. | 245 // introduced, it is prone to change. |
| 246 // TODO(peah): Remove this comment once the new config scheme is fully rolled | 246 // TODO(peah): Remove this comment once the new config scheme is fully rolled |
| 247 // out. | 247 // out. |
| 248 // | 248 // |
| 249 // The parameters and behavior of the audio processing module are controlled | 249 // The parameters and behavior of the audio processing module are controlled |
| 250 // by changing the default values in the AudioProcessing::Config struct. | 250 // by changing the default values in the AudioProcessing::Config struct. |
| 251 // The config is applied by passing the struct to the ApplyConfig method. | 251 // The config is applied by passing the struct to the ApplyConfig method. |
| 252 struct Config { | 252 struct Config { |
| 253 struct LevelController { | 253 struct LevelController { |
| 254 bool enabled = false; | 254 bool enabled = false; |
| 255 |
| 256 // Sets the initial peak level to use inside the level controller in order |
| 257 // to compute the signal gain. The unit for the peak level is dBFS and |
| 258 // the allowed range is [-100, 0]. |
| 259 float initial_peak_level_dbfs = -6.0206f; |
| 255 } level_controller; | 260 } level_controller; |
| 256 }; | 261 }; |
| 257 | 262 |
| 258 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone. | 263 // TODO(mgraczyk): Remove once all methods that use ChannelLayout are gone. |
| 259 enum ChannelLayout { | 264 enum ChannelLayout { |
| 260 kMono, | 265 kMono, |
| 261 // Left, right. | 266 // Left, right. |
| 262 kStereo, | 267 kStereo, |
| 263 // Mono, keyboard, and mic. | 268 // Mono, keyboard, and mic. |
| 264 kMonoAndKeyboard, | 269 kMonoAndKeyboard, |
| (...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 995 // This does not impact the size of frames passed to |ProcessStream()|. | 1000 // This does not impact the size of frames passed to |ProcessStream()|. |
| 996 virtual int set_frame_size_ms(int size) = 0; | 1001 virtual int set_frame_size_ms(int size) = 0; |
| 997 virtual int frame_size_ms() const = 0; | 1002 virtual int frame_size_ms() const = 0; |
| 998 | 1003 |
| 999 protected: | 1004 protected: |
| 1000 virtual ~VoiceDetection() {} | 1005 virtual ~VoiceDetection() {} |
| 1001 }; | 1006 }; |
| 1002 } // namespace webrtc | 1007 } // namespace webrtc |
| 1003 | 1008 |
| 1004 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 1009 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
| OLD | NEW |