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/base/checks.h" |
| 14 #include "webrtc/modules/audio_processing/include/aec_dump.h" |
| 15 // TODO(aleloi): remove AecDump header usage when internal projcets |
| 16 // have updated. See https://bugs.webrtc.org/7404. |
| 17 |
13 namespace webrtc { | 18 namespace webrtc { |
14 | 19 |
15 Beamforming::Beamforming() | 20 Beamforming::Beamforming() |
16 : enabled(false), | 21 : enabled(false), |
17 array_geometry(), | 22 array_geometry(), |
18 target_direction( | 23 target_direction( |
19 SphericalPointf(static_cast<float>(M_PI) / 2.f, 0.f, 1.f)) {} | 24 SphericalPointf(static_cast<float>(M_PI) / 2.f, 0.f, 1.f)) {} |
20 Beamforming::Beamforming(bool enabled, const std::vector<Point>& array_geometry) | 25 Beamforming::Beamforming(bool enabled, const std::vector<Point>& array_geometry) |
21 : Beamforming(enabled, | 26 : Beamforming(enabled, |
22 array_geometry, | 27 array_geometry, |
23 SphericalPointf(static_cast<float>(M_PI) / 2.f, 0.f, 1.f)) {} | 28 SphericalPointf(static_cast<float>(M_PI) / 2.f, 0.f, 1.f)) {} |
24 | 29 |
25 Beamforming::Beamforming(bool enabled, | 30 Beamforming::Beamforming(bool enabled, |
26 const std::vector<Point>& array_geometry, | 31 const std::vector<Point>& array_geometry, |
27 SphericalPointf target_direction) | 32 SphericalPointf target_direction) |
28 : enabled(enabled), | 33 : enabled(enabled), |
29 array_geometry(array_geometry), | 34 array_geometry(array_geometry), |
30 target_direction(target_direction) {} | 35 target_direction(target_direction) {} |
31 | 36 |
32 Beamforming::~Beamforming() {} | 37 Beamforming::~Beamforming() {} |
33 | 38 |
| 39 // TODO(aleloi): make pure virtual when internal projects have |
| 40 // updated. See https://bugs.webrtc.org/7404 |
| 41 void AudioProcessing::AttachAecDump(std::unique_ptr<AecDump> aec_dump) { |
| 42 RTC_NOTREACHED(); |
| 43 } |
| 44 |
| 45 // If no AecDump is attached, this has no effect. If an AecDump is |
| 46 // attached, it's destructor is called. The d-tor may block until |
| 47 // all pending logging tasks are completed. |
| 48 // |
| 49 // TODO(aleloi): make pure virtual when internal projects have |
| 50 // updated. See https://bugs.webrtc.org/7404 |
| 51 void AudioProcessing::DetachAecDump() { |
| 52 RTC_NOTREACHED(); |
| 53 } |
| 54 |
34 } // namespace webrtc | 55 } // namespace webrtc |
OLD | NEW |