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

Side by Side Diff: webrtc/modules/audio_coding/acm2/acm_receive_test.cc

Issue 2337473002: Multi frequency DTMF support - receiver side (Closed)
Patch Set: added neteq tests Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } else if (STR_CASE_CMP(plname, "CN") == 0 && plfreq == 16000) { 73 } else if (STR_CASE_CMP(plname, "CN") == 0 && plfreq == 16000) {
74 *pltype = 98; 74 *pltype = 98;
75 } else if (STR_CASE_CMP(plname, "CN") == 0 && plfreq == 32000) { 75 } else if (STR_CASE_CMP(plname, "CN") == 0 && plfreq == 32000) {
76 *pltype = 99; 76 *pltype = 99;
77 } else if (STR_CASE_CMP(plname, "ILBC") == 0) { 77 } else if (STR_CASE_CMP(plname, "ILBC") == 0) {
78 *pltype = 102; 78 *pltype = 102;
79 } else if (STR_CASE_CMP(plname, "ISAC") == 0 && plfreq == 16000) { 79 } else if (STR_CASE_CMP(plname, "ISAC") == 0 && plfreq == 16000) {
80 *pltype = 103; 80 *pltype = 103;
81 } else if (STR_CASE_CMP(plname, "ISAC") == 0 && plfreq == 32000) { 81 } else if (STR_CASE_CMP(plname, "ISAC") == 0 && plfreq == 32000) {
82 *pltype = 104; 82 *pltype = 104;
83 } else if (STR_CASE_CMP(plname, "telephone-event") == 0) { 83 } else if (STR_CASE_CMP(plname, "telephone-event") == 0 && plfreq == 8000) {
84 *pltype = 106; 84 *pltype = 106;
85 } else if (STR_CASE_CMP(plname, "telephone-event") == 0 && plfreq == 16000) {
86 *pltype = 114;
87 } else if (STR_CASE_CMP(plname, "telephone-event") == 0 && plfreq == 32000) {
88 *pltype = 115;
89 } else if (STR_CASE_CMP(plname, "telephone-event") == 0 && plfreq == 48000) {
90 *pltype = 116;
85 } else if (STR_CASE_CMP(plname, "red") == 0) { 91 } else if (STR_CASE_CMP(plname, "red") == 0) {
86 *pltype = 117; 92 *pltype = 117;
87 } else if (STR_CASE_CMP(plname, "L16") == 0 && plfreq == 8000) { 93 } else if (STR_CASE_CMP(plname, "L16") == 0 && plfreq == 8000) {
88 *pltype = 93; 94 *pltype = 93;
89 } else if (STR_CASE_CMP(plname, "L16") == 0 && plfreq == 16000) { 95 } else if (STR_CASE_CMP(plname, "L16") == 0 && plfreq == 16000) {
90 *pltype = 94; 96 *pltype = 94;
91 } else if (STR_CASE_CMP(plname, "L16") == 0 && plfreq == 32000) { 97 } else if (STR_CASE_CMP(plname, "L16") == 0 && plfreq == 32000) {
92 *pltype = 95; 98 *pltype = 95;
93 } else if (STR_CASE_CMP(plname, "G722") == 0) { 99 } else if (STR_CASE_CMP(plname, "G722") == 0) {
94 *pltype = 9; 100 *pltype = 9;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 if (clock_.TimeInMilliseconds() >= last_toggle_time_ms_ + toggle_period_ms_) { 239 if (clock_.TimeInMilliseconds() >= last_toggle_time_ms_ + toggle_period_ms_) {
234 output_freq_hz_ = (output_freq_hz_ == output_freq_hz_1_) 240 output_freq_hz_ = (output_freq_hz_ == output_freq_hz_1_)
235 ? output_freq_hz_2_ 241 ? output_freq_hz_2_
236 : output_freq_hz_1_; 242 : output_freq_hz_1_;
237 last_toggle_time_ms_ = clock_.TimeInMilliseconds(); 243 last_toggle_time_ms_ = clock_.TimeInMilliseconds();
238 } 244 }
239 } 245 }
240 246
241 } // namespace test 247 } // namespace test
242 } // namespace webrtc 248 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698