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

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

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 years, 3 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) 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 } else { 410 } else {
411 event_log_source = webrtc::test::RtcEventLogSource::Create(argv[1]); 411 event_log_source = webrtc::test::RtcEventLogSource::Create(argv[1]);
412 file_source.reset(event_log_source); 412 file_source.reset(event_log_source);
413 } 413 }
414 414
415 assert(file_source.get()); 415 assert(file_source.get());
416 416
417 // Check if an SSRC value was provided. 417 // Check if an SSRC value was provided.
418 if (!FLAGS_ssrc.empty()) { 418 if (!FLAGS_ssrc.empty()) {
419 uint32_t ssrc; 419 uint32_t ssrc;
420 CHECK(ParseSsrc(FLAGS_ssrc, &ssrc)) << "Flag verification has failed."; 420 RTC_CHECK(ParseSsrc(FLAGS_ssrc, &ssrc)) << "Flag verification has failed.";
421 file_source->SelectSsrc(ssrc); 421 file_source->SelectSsrc(ssrc);
422 } 422 }
423 423
424 // Check if a replacement audio file was provided, and if so, open it. 424 // Check if a replacement audio file was provided, and if so, open it.
425 bool replace_payload = false; 425 bool replace_payload = false;
426 rtc::scoped_ptr<webrtc::test::InputAudioFile> replacement_audio_file; 426 rtc::scoped_ptr<webrtc::test::InputAudioFile> replacement_audio_file;
427 if (!FLAGS_replacement_audio_file.empty()) { 427 if (!FLAGS_replacement_audio_file.empty()) {
428 replacement_audio_file.reset( 428 replacement_audio_file.reset(
429 new webrtc::test::InputAudioFile(FLAGS_replacement_audio_file)); 429 new webrtc::test::InputAudioFile(FLAGS_replacement_audio_file));
430 replace_payload = true; 430 replace_payload = true;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 } 632 }
633 } 633 }
634 printf("Simulation done\n"); 634 printf("Simulation done\n");
635 printf("Produced %i ms of audio\n", 635 printf("Produced %i ms of audio\n",
636 static_cast<int>(time_now_ms - start_time_ms)); 636 static_cast<int>(time_now_ms - start_time_ms));
637 637
638 delete neteq; 638 delete neteq;
639 webrtc::Trace::ReturnTrace(); 639 webrtc::Trace::ReturnTrace();
640 return 0; 640 return 0;
641 } 641 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698