Chromium Code Reviews| Index: webrtc/modules/audio_processing/test/audioproc_float.cc |
| diff --git a/webrtc/modules/audio_processing/test/audioproc_float.cc b/webrtc/modules/audio_processing/test/audioproc_float.cc |
| index 9c44d76ecc29fb404a91630fd7f5efe1247fe988..0549911ca7b52dcfe475479437d9a56c9011b522 100644 |
| --- a/webrtc/modules/audio_processing/test/audioproc_float.cc |
| +++ b/webrtc/modules/audio_processing/test/audioproc_float.cc |
| @@ -37,6 +37,7 @@ DEFINE_string(mic_positions, "", |
| "Space delimited cartesian coordinates of microphones in meters. " |
| "The coordinates of each point are contiguous. " |
| "For a two element array: \"x1 y1 z1 x2 y2 z2\""); |
| +DEFINE_double(target_angle_degrees, 90, "The azimuth of the target in radians"); |
| DEFINE_bool(aec, false, "Enable echo cancellation."); |
| DEFINE_bool(agc, false, "Enable automatic gain control."); |
| @@ -107,7 +108,9 @@ int main(int argc, char* argv[]) { |
| ParseArrayGeometry(FLAGS_mic_positions, num_mics); |
| RTC_CHECK_EQ(array_geometry.size(), num_mics); |
| - config.Set<Beamforming>(new Beamforming(true, array_geometry)); |
| + config.Set<Beamforming>(new Beamforming( |
| + true, array_geometry, |
| + SphericalPointf(M_PI * FLAGS_target_angle_degrees / 180.f, 0.f, 1.f))); |
|
Andrew MacDonald
2015/10/20 03:00:08
Do we have a DegreesToRadians helper somewhere? If
aluebs-webrtc
2015/10/21 01:41:40
I didn't find any helper functions, so I added the
Andrew MacDonald
2015/10/21 03:27:43
Nice.
|
| } |
| rtc::scoped_ptr<AudioProcessing> ap(AudioProcessing::Create(config)); |