| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 16 matching lines...) Expand all Loading... |
| 27 kNetEqCapacityConfig, | 27 kNetEqCapacityConfig, |
| 28 kNetEqFastAccelerate, | 28 kNetEqFastAccelerate, |
| 29 kVoicePacing, | 29 kVoicePacing, |
| 30 kExtendedFilter, | 30 kExtendedFilter, |
| 31 kDelayAgnostic, | 31 kDelayAgnostic, |
| 32 kExperimentalAgc, | 32 kExperimentalAgc, |
| 33 kExperimentalNs, | 33 kExperimentalNs, |
| 34 kBeamforming, | 34 kBeamforming, |
| 35 kIntelligibility, | 35 kIntelligibility, |
| 36 kEchoCanceller3, | 36 kEchoCanceller3, |
| 37 kAecRefinedAdaptiveFilter | 37 kAecRefinedAdaptiveFilter, |
| 38 kLevelControl |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 // Class Config is designed to ease passing a set of options across webrtc code. | 41 // Class Config is designed to ease passing a set of options across webrtc code. |
| 41 // Options are identified by typename in order to avoid incorrect casts. | 42 // Options are identified by typename in order to avoid incorrect casts. |
| 42 // | 43 // |
| 43 // Usage: | 44 // Usage: |
| 44 // * declaring an option: | 45 // * declaring an option: |
| 45 // struct Algo1_CostFunction { | 46 // struct Algo1_CostFunction { |
| 46 // virtual float cost(int x) const { return x; } | 47 // virtual float cost(int x) const { return x; } |
| 47 // virtual ~Algo1_CostFunction() {} | 48 // virtual ~Algo1_CostFunction() {} |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 template<typename T> | 132 template<typename T> |
| 132 void Config::Set(T* value) { | 133 void Config::Set(T* value) { |
| 133 BaseOption*& it = options_[identifier<T>()]; | 134 BaseOption*& it = options_[identifier<T>()]; |
| 134 delete it; | 135 delete it; |
| 135 it = new Option<T>(value); | 136 it = new Option<T>(value); |
| 136 } | 137 } |
| 137 | 138 |
| 138 } // namespace webrtc | 139 } // namespace webrtc |
| 139 | 140 |
| 140 #endif // WEBRTC_COMMON_H_ | 141 #endif // WEBRTC_COMMON_H_ |
| OLD | NEW |