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

Side by Side Diff: webrtc/modules/audio_coding/neteq/tools/neteq_test.cc

Issue 2750783004: Add mute state field to AudioFrame. (Closed)
Patch Set: Fix num_channels check in UpMix() Created 3 years, 9 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) 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698