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

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

Issue 2750783004: Add mute state field to AudioFrame. (Closed)
Patch Set: Update new usages of AudioFrame::data_ Created 3 years, 6 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } else { 96 } else {
97 sample_rate_hz_ = out_frame.sample_rate_hz_; 97 sample_rate_hz_ = out_frame.sample_rate_hz_;
98 } 98 }
99 if (callbacks_.get_audio_callback) { 99 if (callbacks_.get_audio_callback) {
100 callbacks_.get_audio_callback->AfterGetAudio(time_now_ms, out_frame, 100 callbacks_.get_audio_callback->AfterGetAudio(time_now_ms, out_frame,
101 muted, neteq_.get()); 101 muted, neteq_.get());
102 } 102 }
103 103
104 if (output_) { 104 if (output_) {
105 RTC_CHECK(output_->WriteArray( 105 RTC_CHECK(output_->WriteArray(
106 out_frame.data_, 106 out_frame.data(),
107 out_frame.samples_per_channel_ * out_frame.num_channels_)); 107 out_frame.samples_per_channel_ * out_frame.num_channels_));
108 } 108 }
109 109
110 input_->AdvanceOutputEvent(); 110 input_->AdvanceOutputEvent();
111 } 111 }
112 } 112 }
113 return time_now_ms - start_time_ms; 113 return time_now_ms - start_time_ms;
114 } 114 }
115 115
116 NetEqNetworkStatistics NetEqTest::SimulationStats() { 116 NetEqNetworkStatistics NetEqTest::SimulationStats() {
(...skipping 18 matching lines...) Expand all
135 neteq_->RegisterExternalDecoder(c.second.decoder, c.second.codec, 135 neteq_->RegisterExternalDecoder(c.second.decoder, c.second.codec,
136 c.second.codec_name, c.first), 136 c.second.codec_name, c.first),
137 NetEq::kOK) 137 NetEq::kOK)
138 << "Cannot register " << c.second.codec_name << " to payload type " 138 << "Cannot register " << c.second.codec_name << " to payload type "
139 << c.first; 139 << c.first;
140 } 140 }
141 } 141 }
142 142
143 } // namespace test 143 } // namespace test
144 } // namespace webrtc 144 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/tools/neteq_quality_test.cc ('k') | webrtc/modules/audio_coding/test/EncodeDecodeTest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698