| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 |
| 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_BEAMFORMER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_BEAMFORMER_H_ |
| 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_BEAMFORMER_H_ | 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_BEAMFORMER_H_ |
| 13 | 13 |
| 14 #include "webrtc/common_audio/channel_buffer.h" | 14 #include "webrtc/common_audio/channel_buffer.h" |
| 15 #include "webrtc/modules/audio_processing/beamformer/array_util.h" |
| 15 | 16 |
| 16 namespace webrtc { | 17 namespace webrtc { |
| 17 | 18 |
| 18 template<typename T> | 19 template<typename T> |
| 19 class Beamformer { | 20 class Beamformer { |
| 20 public: | 21 public: |
| 21 virtual ~Beamformer() {} | 22 virtual ~Beamformer() {} |
| 22 | 23 |
| 23 // Process one time-domain chunk of audio. The audio is expected to be split | 24 // Process one time-domain chunk of audio. The audio is expected to be split |
| 24 // into frequency bands inside the ChannelBuffer. The number of frames and | 25 // into frequency bands inside the ChannelBuffer. The number of frames and |
| (...skipping 10 matching lines...) Expand all Loading... |
| 35 virtual bool IsInBeam(const SphericalPointf& spherical_point) { return true; } | 36 virtual bool IsInBeam(const SphericalPointf& spherical_point) { return true; } |
| 36 | 37 |
| 37 // Returns true if the current data contains the target signal. | 38 // Returns true if the current data contains the target signal. |
| 38 // Which signals are considered "targets" is implementation dependent. | 39 // Which signals are considered "targets" is implementation dependent. |
| 39 virtual bool is_target_present() = 0; | 40 virtual bool is_target_present() = 0; |
| 40 }; | 41 }; |
| 41 | 42 |
| 42 } // namespace webrtc | 43 } // namespace webrtc |
| 43 | 44 |
| 44 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_BEAMFORMER_H_ | 45 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_BEAMFORMER_BEAMFORMER_H_ |
| OLD | NEW |