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

Side by Side Diff: webrtc/voice_engine/test/cmd_test/voe_cmd_test.cc

Issue 2295113002: Removing the RX processing APIs from VoEAudioProcessing: (Closed)
Patch Set: rebase Created 4 years, 3 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 unified diff | Download patch
OLDNEW
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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 VoiceEngine::Delete(m_voe); 213 VoiceEngine::Delete(m_voe);
214 214
215 return 0; 215 return 0;
216 } 216 }
217 217
218 void RunTest(std::string out_path) { 218 void RunTest(std::string out_path) {
219 int chan, res; 219 int chan, res;
220 CodecInst cinst; 220 CodecInst cinst;
221 bool enable_aec = false; 221 bool enable_aec = false;
222 bool enable_agc = false; 222 bool enable_agc = false;
223 bool enable_rx_agc = false;
224 bool enable_cng = false; 223 bool enable_cng = false;
225 bool enable_ns = false; 224 bool enable_ns = false;
226 bool enable_rx_ns = false;
227 bool typing_detection = false; 225 bool typing_detection = false;
228 bool muted = false; 226 bool muted = false;
229 bool opus_stereo = false; 227 bool opus_stereo = false;
230 bool opus_dtx = false; 228 bool opus_dtx = false;
231 bool experimental_ns_enabled = false; 229 bool experimental_ns_enabled = false;
232 bool debug_recording_started = false; 230 bool debug_recording_started = false;
233 231
234 #if defined(WEBRTC_ANDROID) 232 #if defined(WEBRTC_ANDROID)
235 std::string resource_path = "/sdcard/"; 233 std::string resource_path = "/sdcard/";
236 #else 234 #else
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 printf(" %d: %s \n", i, dn); 578 printf(" %d: %s \n", i, dn);
581 } 579 }
582 580
583 printf("Select recording device: "); 581 printf("Select recording device: ");
584 ASSERT_EQ(1, scanf("%d", &num_rd)); 582 ASSERT_EQ(1, scanf("%d", &num_rd));
585 printf("Setting sound devices \n"); 583 printf("Setting sound devices \n");
586 // Will use plughw for hardware devices 584 // Will use plughw for hardware devices
587 res = hardware->SetRecordingDevice(num_rd); 585 res = hardware->SetRecordingDevice(num_rd);
588 VALIDATE; 586 VALIDATE;
589 } else if (option_selection == option_index++) { 587 } else if (option_selection == option_index++) {
590 // Remote AGC
591 enable_rx_agc = !enable_rx_agc;
592 res = apm->SetRxAgcStatus(chan, enable_rx_agc);
593 VALIDATE;
594 if (enable_rx_agc)
595 printf("\n Receive-side AGC is now on! \n");
596 else
597 printf("\n Receive-side AGC is now off! \n");
598 } else if (option_selection == option_index++) {
599 // Remote NS
600 enable_rx_ns = !enable_rx_ns;
601 res = apm->SetRxNsStatus(chan, enable_rx_ns);
602 VALIDATE;
603 if (enable_rx_ns)
604 printf("\n Receive-side NS is now on! \n");
605 else
606 printf("\n Receive-side NS is now off! \n");
607 } else if (option_selection == option_index++) {
608 AgcModes agcmode; 588 AgcModes agcmode;
609 bool enable; 589 bool enable;
610 res = apm->GetAgcStatus(enable, agcmode); 590 res = apm->GetAgcStatus(enable, agcmode);
611 VALIDATE 591 VALIDATE
612 printf("\n AGC enable is %d, mode is %d \n", enable, agcmode); 592 printf("\n AGC enable is %d, mode is %d \n", enable, agcmode);
613 } else if (option_selection == option_index++) { 593 } else if (option_selection == option_index++) {
614 // Toggle Mute on Microphone 594 // Toggle Mute on Microphone
615 res = volume->GetInputMute(chan, muted); 595 res = volume->GetInputMute(chan, muted);
616 VALIDATE; 596 VALIDATE;
617 muted = !muted; 597 muted = !muted;
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 825
846 printf("Delete channels \n"); 826 printf("Delete channels \n");
847 res = base1->DeleteChannel(chan); 827 res = base1->DeleteChannel(chan);
848 VALIDATE; 828 VALIDATE;
849 829
850 for (int i = 0; i < kMaxNumChannels; ++i) { 830 for (int i = 0; i < kMaxNumChannels; ++i) {
851 res = base1->DeleteChannel(channels[i]); 831 res = base1->DeleteChannel(channels[i]);
852 VALIDATE; 832 VALIDATE;
853 } 833 }
854 } 834 }
OLDNEW
« no previous file with comments | « webrtc/voice_engine/test/auto_test/standard/audio_processing_test.cc ('k') | webrtc/voice_engine/voe_audio_processing_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698