OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 if (error != NetEq::kOK) { | 88 if (error != NetEq::kOK) { |
89 if (error_callback_) { | 89 if (error_callback_) { |
90 error_callback_->OnGetAudioError(neteq_->LastError()); | 90 error_callback_->OnGetAudioError(neteq_->LastError()); |
91 } | 91 } |
92 } else { | 92 } else { |
93 sample_rate_hz_ = out_frame.sample_rate_hz_; | 93 sample_rate_hz_ = out_frame.sample_rate_hz_; |
94 } | 94 } |
95 | 95 |
96 if (output_) { | 96 if (output_) { |
97 RTC_CHECK(output_->WriteArray( | 97 RTC_CHECK(output_->WriteArray( |
98 out_frame.data_, | 98 out_frame.data(), |
99 out_frame.samples_per_channel_ * out_frame.num_channels_)); | 99 out_frame.samples_per_channel_ * out_frame.num_channels_)); |
100 } | 100 } |
101 | 101 |
102 input_->AdvanceOutputEvent(); | 102 input_->AdvanceOutputEvent(); |
103 } | 103 } |
104 } | 104 } |
105 return time_now_ms - start_time_ms; | 105 return time_now_ms - start_time_ms; |
106 } | 106 } |
107 | 107 |
108 NetEqNetworkStatistics NetEqTest::SimulationStats() { | 108 NetEqNetworkStatistics NetEqTest::SimulationStats() { |
(...skipping 18 matching lines...) Expand all Loading... |
127 neteq_->RegisterExternalDecoder(c.second.decoder, c.second.codec, | 127 neteq_->RegisterExternalDecoder(c.second.decoder, c.second.codec, |
128 c.second.codec_name, c.first), | 128 c.second.codec_name, c.first), |
129 NetEq::kOK) | 129 NetEq::kOK) |
130 << "Cannot register " << c.second.codec_name << " to payload type " | 130 << "Cannot register " << c.second.codec_name << " to payload type " |
131 << c.first; | 131 << c.first; |
132 } | 132 } |
133 } | 133 } |
134 | 134 |
135 } // namespace test | 135 } // namespace test |
136 } // namespace webrtc | 136 } // namespace webrtc |
OLD | NEW |