OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 #include "webrtc/modules/audio_processing/include/audio_processing.h" | 11 #include "webrtc/modules/audio_processing/include/audio_processing.h" |
12 | 12 |
13 #include "webrtc/rtc_base/checks.h" | 13 #include "webrtc/base/checks.h" |
14 | 14 |
15 namespace webrtc { | 15 namespace webrtc { |
16 | 16 |
17 Beamforming::Beamforming() | 17 Beamforming::Beamforming() |
18 : enabled(false), | 18 : enabled(false), |
19 array_geometry(), | 19 array_geometry(), |
20 target_direction( | 20 target_direction( |
21 SphericalPointf(static_cast<float>(M_PI) / 2.f, 0.f, 1.f)) {} | 21 SphericalPointf(static_cast<float>(M_PI) / 2.f, 0.f, 1.f)) {} |
22 Beamforming::Beamforming(bool enabled, const std::vector<Point>& array_geometry) | 22 Beamforming::Beamforming(bool enabled, const std::vector<Point>& array_geometry) |
23 : Beamforming(enabled, | 23 : Beamforming(enabled, |
24 array_geometry, | 24 array_geometry, |
25 SphericalPointf(static_cast<float>(M_PI) / 2.f, 0.f, 1.f)) {} | 25 SphericalPointf(static_cast<float>(M_PI) / 2.f, 0.f, 1.f)) {} |
26 | 26 |
27 Beamforming::Beamforming(bool enabled, | 27 Beamforming::Beamforming(bool enabled, |
28 const std::vector<Point>& array_geometry, | 28 const std::vector<Point>& array_geometry, |
29 SphericalPointf target_direction) | 29 SphericalPointf target_direction) |
30 : enabled(enabled), | 30 : enabled(enabled), |
31 array_geometry(array_geometry), | 31 array_geometry(array_geometry), |
32 target_direction(target_direction) {} | 32 target_direction(target_direction) {} |
33 | 33 |
34 Beamforming::~Beamforming() {} | 34 Beamforming::~Beamforming() {} |
35 } // namespace webrtc | 35 } // namespace webrtc |
OLD | NEW |