Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Unified Diff: webrtc/modules/audio_processing/beamformer/array_util.cc

Issue 1394103003: Make the nonlinear beamformer steerable (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@highfreq
Patch Set: Generalize interferer scenarios Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/beamformer/array_util.cc
diff --git a/webrtc/modules/audio_processing/beamformer/array_util.cc b/webrtc/modules/audio_processing/beamformer/array_util.cc
index c1c4066b0c1e581dd1b38216ba01ebbd172d2ad2..4c06b9104380031e17699b3eaeda7d322c5fc5d9 100644
--- a/webrtc/modules/audio_processing/beamformer/array_util.cc
+++ b/webrtc/modules/audio_processing/beamformer/array_util.cc
@@ -29,4 +29,12 @@ float GetMinimumSpacing(const std::vector<Point>& array_geometry) {
return mic_spacing;
}
+float DegreesToRadians(float angle_degrees) {
+ return M_PI * angle_degrees / 180.f;
+}
+
+float RadiansToDegrees(float angle_radians) {
+ return 180.f * angle_radians / M_PI;
+}
+
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698