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

Side by Side Diff: webrtc/modules/audio_processing/test/audioproc_float.cc

Issue 1310653002: Fix accidental redeclaration. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 const StreamConfig input_config = { 165 const StreamConfig input_config = {
166 in_file.sample_rate(), in_buf.num_channels(), 166 in_file.sample_rate(), in_buf.num_channels(),
167 }; 167 };
168 const StreamConfig output_config = { 168 const StreamConfig output_config = {
169 out_file.sample_rate(), out_buf.num_channels(), 169 out_file.sample_rate(), out_buf.num_channels(),
170 }; 170 };
171 171
172 StreamConfig reverse_input_config = {}; 172 StreamConfig reverse_input_config = {};
173 StreamConfig reverse_output_config = {}; 173 StreamConfig reverse_output_config = {};
174 if (process_reverse) { 174 if (process_reverse) {
175 StreamConfig reverse_input_config = {in_rev_file->sample_rate(), 175 reverse_input_config = {in_rev_file->sample_rate(),
176 in_rev_file->num_channels()}; 176 in_rev_file->num_channels()};
177 StreamConfig reverse_output_config = {out_rev_file->sample_rate(), 177 reverse_output_config = {out_rev_file->sample_rate(),
178 out_rev_file->num_channels()}; 178 out_rev_file->num_channels()};
179 } 179 }
180 while (in_file.ReadSamples(in_interleaved.size(), 180 while (in_file.ReadSamples(in_interleaved.size(),
181 &in_interleaved[0]) == in_interleaved.size()) { 181 &in_interleaved[0]) == in_interleaved.size()) {
182 // Have logs display the file time rather than wallclock time. 182 // Have logs display the file time rather than wallclock time.
183 trace_to_stderr.SetTimeSeconds(num_chunks * 1.f / kChunksPerSecond); 183 trace_to_stderr.SetTimeSeconds(num_chunks * 1.f / kChunksPerSecond);
184 FloatS16ToFloat(&in_interleaved[0], in_interleaved.size(), 184 FloatS16ToFloat(&in_interleaved[0], in_interleaved.size(),
185 &in_interleaved[0]); 185 &in_interleaved[0]);
186 Deinterleave(&in_interleaved[0], in_buf.num_frames(), 186 Deinterleave(&in_interleaved[0], in_buf.num_frames(),
187 in_buf.num_channels(), in_buf.channels()); 187 in_buf.num_channels(), in_buf.channels());
188 if (process_reverse) { 188 if (process_reverse) {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 execution_time_ms * 1.f / num_chunks); 231 execution_time_ms * 1.f / num_chunks);
232 } 232 }
233 return 0; 233 return 0;
234 } 234 }
235 235
236 } // namespace webrtc 236 } // namespace webrtc
237 237
238 int main(int argc, char* argv[]) { 238 int main(int argc, char* argv[]) {
239 return webrtc::main(argc, argv); 239 return webrtc::main(argc, argv);
240 } 240 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698