OLD | NEW |
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } else if (STR_CASE_CMP(plname, "CN") == 0 && plfreq == 16000) { | 72 } else if (STR_CASE_CMP(plname, "CN") == 0 && plfreq == 16000) { |
73 *pltype = 98; | 73 *pltype = 98; |
74 } else if (STR_CASE_CMP(plname, "CN") == 0 && plfreq == 32000) { | 74 } else if (STR_CASE_CMP(plname, "CN") == 0 && plfreq == 32000) { |
75 *pltype = 99; | 75 *pltype = 99; |
76 } else if (STR_CASE_CMP(plname, "ILBC") == 0) { | 76 } else if (STR_CASE_CMP(plname, "ILBC") == 0) { |
77 *pltype = 102; | 77 *pltype = 102; |
78 } else if (STR_CASE_CMP(plname, "ISAC") == 0 && plfreq == 16000) { | 78 } else if (STR_CASE_CMP(plname, "ISAC") == 0 && plfreq == 16000) { |
79 *pltype = 103; | 79 *pltype = 103; |
80 } else if (STR_CASE_CMP(plname, "ISAC") == 0 && plfreq == 32000) { | 80 } else if (STR_CASE_CMP(plname, "ISAC") == 0 && plfreq == 32000) { |
81 *pltype = 104; | 81 *pltype = 104; |
82 } else if (STR_CASE_CMP(plname, "telephone-event") == 0) { | 82 } else if (STR_CASE_CMP(plname, "telephone-event") == 0 && plfreq == 8000) { |
83 *pltype = 106; | 83 *pltype = 106; |
| 84 } else if (STR_CASE_CMP(plname, "telephone-event") == 0 && plfreq == 16000) { |
| 85 *pltype = 114; |
| 86 } else if (STR_CASE_CMP(plname, "telephone-event") == 0 && plfreq == 32000) { |
| 87 *pltype = 115; |
| 88 } else if (STR_CASE_CMP(plname, "telephone-event") == 0 && plfreq == 48000) { |
| 89 *pltype = 116; |
84 } else if (STR_CASE_CMP(plname, "red") == 0) { | 90 } else if (STR_CASE_CMP(plname, "red") == 0) { |
85 *pltype = 117; | 91 *pltype = 117; |
86 } else if (STR_CASE_CMP(plname, "L16") == 0 && plfreq == 8000) { | 92 } else if (STR_CASE_CMP(plname, "L16") == 0 && plfreq == 8000) { |
87 *pltype = 93; | 93 *pltype = 93; |
88 } else if (STR_CASE_CMP(plname, "L16") == 0 && plfreq == 16000) { | 94 } else if (STR_CASE_CMP(plname, "L16") == 0 && plfreq == 16000) { |
89 *pltype = 94; | 95 *pltype = 94; |
90 } else if (STR_CASE_CMP(plname, "L16") == 0 && plfreq == 32000) { | 96 } else if (STR_CASE_CMP(plname, "L16") == 0 && plfreq == 32000) { |
91 *pltype = 95; | 97 *pltype = 95; |
92 } else if (STR_CASE_CMP(plname, "G722") == 0) { | 98 } else if (STR_CASE_CMP(plname, "G722") == 0) { |
93 *pltype = 9; | 99 *pltype = 9; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 if (clock_.TimeInMilliseconds() >= last_toggle_time_ms_ + toggle_period_ms_) { | 226 if (clock_.TimeInMilliseconds() >= last_toggle_time_ms_ + toggle_period_ms_) { |
221 output_freq_hz_ = (output_freq_hz_ == output_freq_hz_1_) | 227 output_freq_hz_ = (output_freq_hz_ == output_freq_hz_1_) |
222 ? output_freq_hz_2_ | 228 ? output_freq_hz_2_ |
223 : output_freq_hz_1_; | 229 : output_freq_hz_1_; |
224 last_toggle_time_ms_ = clock_.TimeInMilliseconds(); | 230 last_toggle_time_ms_ = clock_.TimeInMilliseconds(); |
225 } | 231 } |
226 } | 232 } |
227 | 233 |
228 } // namespace test | 234 } // namespace test |
229 } // namespace webrtc | 235 } // namespace webrtc |
OLD | NEW |