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

Side by Side Diff: modules/audio_coding/test/insert_packet_with_timing.cc

Issue 3019543002: Remove various IDs (Closed)
Patch Set: rebase+build error Created 3 years, 2 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 | « modules/audio_coding/test/iSACTest.cc ('k') | modules/audio_coding/test/opus_test.cc » ('j') | 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 const int32_t kPacketPushedIn = 0x00000001 << 1; 54 const int32_t kPacketPushedIn = 0x00000001 << 1;
55 const int kPlayoutPeriodMs = 10; 55 const int kPlayoutPeriodMs = 10;
56 56
57 namespace webrtc { 57 namespace webrtc {
58 58
59 class InsertPacketWithTiming { 59 class InsertPacketWithTiming {
60 public: 60 public:
61 InsertPacketWithTiming() 61 InsertPacketWithTiming()
62 : sender_clock_(new SimulatedClock(0)), 62 : sender_clock_(new SimulatedClock(0)),
63 receiver_clock_(new SimulatedClock(0)), 63 receiver_clock_(new SimulatedClock(0)),
64 send_acm_(AudioCodingModule::Create(0, sender_clock_)), 64 send_acm_(AudioCodingModule::Create(sender_clock_)),
65 receive_acm_(AudioCodingModule::Create(0, receiver_clock_)), 65 receive_acm_(AudioCodingModule::Create(receiver_clock_)),
66 channel_(new Channel), 66 channel_(new Channel),
67 seq_num_fid_(fopen(FLAG_seq_num, "rt")), 67 seq_num_fid_(fopen(FLAG_seq_num, "rt")),
68 send_ts_fid_(fopen(FLAG_send_ts, "rt")), 68 send_ts_fid_(fopen(FLAG_send_ts, "rt")),
69 receive_ts_fid_(fopen(FLAG_receive_ts, "rt")), 69 receive_ts_fid_(fopen(FLAG_receive_ts, "rt")),
70 pcm_out_fid_(fopen(FLAG_output, "wb")), 70 pcm_out_fid_(fopen(FLAG_output, "wb")),
71 samples_in_1ms_(48), 71 samples_in_1ms_(48),
72 num_10ms_in_codec_frame_(2), // Typical 20 ms frames. 72 num_10ms_in_codec_frame_(2), // Typical 20 ms frames.
73 time_to_insert_packet_ms_(3), // An arbitrary offset on pushing packet. 73 time_to_insert_packet_ms_(3), // An arbitrary offset on pushing packet.
74 next_receive_ts_(0), 74 next_receive_ts_(0),
75 time_to_playout_audio_ms_(kPlayoutPeriodMs), 75 time_to_playout_audio_ms_(kPlayoutPeriodMs),
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 if (delay_log != NULL) { 313 if (delay_log != NULL) {
314 fprintf(delay_log, "%3d %3d\n", optimal_delay_ms, current_delay_ms); 314 fprintf(delay_log, "%3d %3d\n", optimal_delay_ms, current_delay_ms);
315 } 315 }
316 } 316 }
317 } 317 }
318 std::cout << std::endl; 318 std::cout << std::endl;
319 test.TearDown(); 319 test.TearDown();
320 if (delay_log != NULL) 320 if (delay_log != NULL)
321 fclose(delay_log); 321 fclose(delay_log);
322 } 322 }
OLDNEW
« no previous file with comments | « modules/audio_coding/test/iSACTest.cc ('k') | modules/audio_coding/test/opus_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698