Chromium Code Reviews| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 102 ExperimentalNs() : enabled(false) {} | 102 ExperimentalNs() : enabled(false) {} |
| 103 explicit ExperimentalNs(bool enabled) : enabled(enabled) {} | 103 explicit ExperimentalNs(bool enabled) : enabled(enabled) {} |
| 104 bool enabled; | 104 bool enabled; |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 // Use to enable beamforming. Must be provided through the constructor. It will | 107 // Use to enable beamforming. Must be provided through the constructor. It will |
| 108 // have no impact if used with AudioProcessing::SetExtraOptions(). | 108 // have no impact if used with AudioProcessing::SetExtraOptions(). |
| 109 struct Beamforming { | 109 struct Beamforming { |
| 110 Beamforming() | 110 Beamforming() |
| 111 : enabled(false), | 111 : enabled(false), |
| 112 array_geometry() {} | 112 array_geometry(), |
| 113 target_angle_radians(M_PI / 2.f) {} | |
|
The Sun (google.com)
2015/10/13 07:20:21
Use C++11 initialization?
aluebs-webrtc
2015/10/20 00:04:20
I am not sure what you are suggesting. What am I m
| |
| 113 Beamforming(bool enabled, const std::vector<Point>& array_geometry) | 114 Beamforming(bool enabled, const std::vector<Point>& array_geometry) |
| 115 : Beamforming(enabled, array_geometry, M_PI / 2.f) {} | |
| 116 Beamforming(bool enabled, | |
| 117 const std::vector<Point>& array_geometry, | |
| 118 float target_angle_radians) | |
| 114 : enabled(enabled), | 119 : enabled(enabled), |
| 115 array_geometry(array_geometry) {} | 120 array_geometry(array_geometry), |
| 121 target_angle_radians(target_angle_radians) {} | |
| 116 const bool enabled; | 122 const bool enabled; |
| 117 const std::vector<Point> array_geometry; | 123 const std::vector<Point> array_geometry; |
| 124 const float target_angle_radians; | |
|
Andrew MacDonald
2015/10/14 22:12:31
We don't have any immediate use for exposing this
aluebs-webrtc
2015/10/20 00:04:20
Yes, I only surfaced it here to test it in audiopr
Andrew MacDonald
2015/10/20 03:00:08
I think it's probably worth it.
aluebs-webrtc
2015/10/21 01:41:40
Agreed.
| |
| 118 }; | 125 }; |
| 119 | 126 |
| 120 // Use to enable intelligibility enhancer in audio processing. Must be provided | 127 // Use to enable intelligibility enhancer in audio processing. Must be provided |
| 121 // though the constructor. It will have no impact if used with | 128 // though the constructor. It will have no impact if used with |
| 122 // AudioProcessing::SetExtraOptions(). | 129 // AudioProcessing::SetExtraOptions(). |
| 123 // | 130 // |
| 124 // Note: If enabled and the reverse stream has more than one output channel, | 131 // Note: If enabled and the reverse stream has more than one output channel, |
| 125 // the reverse stream will become an upmixed mono signal. | 132 // the reverse stream will become an upmixed mono signal. |
| 126 struct Intelligibility { | 133 struct Intelligibility { |
| 127 Intelligibility() : enabled(false) {} | 134 Intelligibility() : enabled(false) {} |
| (...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 929 // This does not impact the size of frames passed to |ProcessStream()|. | 936 // This does not impact the size of frames passed to |ProcessStream()|. |
| 930 virtual int set_frame_size_ms(int size) = 0; | 937 virtual int set_frame_size_ms(int size) = 0; |
| 931 virtual int frame_size_ms() const = 0; | 938 virtual int frame_size_ms() const = 0; |
| 932 | 939 |
| 933 protected: | 940 protected: |
| 934 virtual ~VoiceDetection() {} | 941 virtual ~VoiceDetection() {} |
| 935 }; | 942 }; |
| 936 } // namespace webrtc | 943 } // namespace webrtc |
| 937 | 944 |
| 938 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 945 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ |
| OLD | NEW |