aleloi | 5f09980 | 2016-08-25 00:45:31 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 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 |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame^] | 11 | #include "modules/audio_processing/include/audio_processing.h" |
aleloi | 5f09980 | 2016-08-25 00:45:31 -0700 | [diff] [blame] | 12 | |
Mirko Bonadei | 92ea95e | 2017-09-15 06:47:31 +0200 | [diff] [blame^] | 13 | #include "rtc_base/checks.h" |
aleloi | 868f32f | 2017-05-23 07:20:05 -0700 | [diff] [blame] | 14 | |
aleloi | 5f09980 | 2016-08-25 00:45:31 -0700 | [diff] [blame] | 15 | namespace webrtc { |
| 16 | |
| 17 | Beamforming::Beamforming() |
| 18 | : enabled(false), |
| 19 | array_geometry(), |
| 20 | target_direction( |
| 21 | SphericalPointf(static_cast<float>(M_PI) / 2.f, 0.f, 1.f)) {} |
| 22 | Beamforming::Beamforming(bool enabled, const std::vector<Point>& array_geometry) |
| 23 | : Beamforming(enabled, |
| 24 | array_geometry, |
| 25 | SphericalPointf(static_cast<float>(M_PI) / 2.f, 0.f, 1.f)) {} |
| 26 | |
| 27 | Beamforming::Beamforming(bool enabled, |
| 28 | const std::vector<Point>& array_geometry, |
| 29 | SphericalPointf target_direction) |
| 30 | : enabled(enabled), |
| 31 | array_geometry(array_geometry), |
| 32 | target_direction(target_direction) {} |
| 33 | |
| 34 | Beamforming::~Beamforming() {} |
aleloi | 5f09980 | 2016-08-25 00:45:31 -0700 | [diff] [blame] | 35 | } // namespace webrtc |