| 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 13 matching lines...) Expand all Loading... |
| 24 #include "webrtc/common.h" | 24 #include "webrtc/common.h" |
| 25 #include "webrtc/modules/audio_processing/beamformer/array_util.h" | 25 #include "webrtc/modules/audio_processing/beamformer/array_util.h" |
| 26 #include "webrtc/typedefs.h" | 26 #include "webrtc/typedefs.h" |
| 27 | 27 |
| 28 namespace webrtc { | 28 namespace webrtc { |
| 29 | 29 |
| 30 struct AecCore; | 30 struct AecCore; |
| 31 | 31 |
| 32 class AudioFrame; | 32 class AudioFrame; |
| 33 | 33 |
| 34 class NonlinearBeamformer; | 34 template<typename T> |
| 35 class Beamformer; |
| 35 | 36 |
| 36 class StreamConfig; | 37 class StreamConfig; |
| 37 class ProcessingConfig; | 38 class ProcessingConfig; |
| 38 | 39 |
| 39 class EchoCancellation; | 40 class EchoCancellation; |
| 40 class EchoControlMobile; | 41 class EchoControlMobile; |
| 41 class GainControl; | 42 class GainControl; |
| 42 class HighPassFilter; | 43 class HighPassFilter; |
| 43 class LevelEstimator; | 44 class LevelEstimator; |
| 44 class NoiseSuppression; | 45 class NoiseSuppression; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 // Creates an APM instance. Use one instance for every primary audio stream | 260 // Creates an APM instance. Use one instance for every primary audio stream |
| 260 // requiring processing. On the client-side, this would typically be one | 261 // requiring processing. On the client-side, this would typically be one |
| 261 // instance for the near-end stream, and additional instances for each far-end | 262 // instance for the near-end stream, and additional instances for each far-end |
| 262 // stream which requires processing. On the server-side, this would typically | 263 // stream which requires processing. On the server-side, this would typically |
| 263 // be one instance for every incoming stream. | 264 // be one instance for every incoming stream. |
| 264 static AudioProcessing* Create(); | 265 static AudioProcessing* Create(); |
| 265 // Allows passing in an optional configuration at create-time. | 266 // Allows passing in an optional configuration at create-time. |
| 266 static AudioProcessing* Create(const Config& config); | 267 static AudioProcessing* Create(const Config& config); |
| 267 // Only for testing. | 268 // Only for testing. |
| 268 static AudioProcessing* Create(const Config& config, | 269 static AudioProcessing* Create(const Config& config, |
| 269 NonlinearBeamformer* beamformer); | 270 Beamformer<float>* beamformer); |
| 270 virtual ~AudioProcessing() {} | 271 virtual ~AudioProcessing() {} |
| 271 | 272 |
| 272 // Initializes internal states, while retaining all user settings. This | 273 // Initializes internal states, while retaining all user settings. This |
| 273 // should be called before beginning to process a new audio stream. However, | 274 // should be called before beginning to process a new audio stream. However, |
| 274 // it is not necessary to call before processing the first stream after | 275 // it is not necessary to call before processing the first stream after |
| 275 // creation. | 276 // creation. |
| 276 // | 277 // |
| 277 // It is also not necessary to call if the audio parameters (sample | 278 // It is also not necessary to call if the audio parameters (sample |
| 278 // rate and number of channels) have changed. Passing updated parameters | 279 // rate and number of channels) have changed. Passing updated parameters |
| 279 // directly to |ProcessStream()| and |ProcessReverseStream()| is permissible. | 280 // directly to |ProcessStream()| and |ProcessReverseStream()| is permissible. |
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 // This does not impact the size of frames passed to |ProcessStream()|. | 978 // This does not impact the size of frames passed to |ProcessStream()|. |
| 978 virtual int set_frame_size_ms(int size) = 0; | 979 virtual int set_frame_size_ms(int size) = 0; |
| 979 virtual int frame_size_ms() const = 0; | 980 virtual int frame_size_ms() const = 0; |
| 980 | 981 |
| 981 protected: | 982 protected: |
| 982 virtual ~VoiceDetection() {} | 983 virtual ~VoiceDetection() {} |
| 983 }; | 984 }; |
| 984 } // namespace webrtc | 985 } // namespace webrtc |
| 985 | 986 |
| 986 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 987 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
| OLD | NEW |