OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <algorithm> | 5 #include <algorithm> |
6 #include <climits> | 6 #include <climits> |
7 #include <cstdarg> | 7 #include <cstdarg> |
8 #include <cstdio> | 8 #include <cstdio> |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 std::map<uint16, base::TimeTicks> audio_play_times_; | 533 std::map<uint16, base::TimeTicks> audio_play_times_; |
534 std::map<uint16, base::TimeTicks> video_play_times_; | 534 std::map<uint16, base::TimeTicks> video_play_times_; |
535 int32 last_audio_frame_no_; | 535 int32 last_audio_frame_no_; |
536 }; | 536 }; |
537 | 537 |
538 } // namespace cast | 538 } // namespace cast |
539 } // namespace media | 539 } // namespace media |
540 | 540 |
541 int main(int argc, char** argv) { | 541 int main(int argc, char** argv) { |
542 base::AtExitManager at_exit; | 542 base::AtExitManager at_exit; |
543 CommandLine::Init(argc, argv); | 543 base::CommandLine::Init(argc, argv); |
544 InitLogging(logging::LoggingSettings()); | 544 InitLogging(logging::LoggingSettings()); |
545 | 545 |
546 scoped_refptr<media::cast::CastEnvironment> cast_environment( | 546 scoped_refptr<media::cast::CastEnvironment> cast_environment( |
547 new media::cast::StandaloneCastEnvironment); | 547 new media::cast::StandaloneCastEnvironment); |
548 | 548 |
549 // Start up Chromium audio system. | 549 // Start up Chromium audio system. |
550 media::FakeAudioLogFactory fake_audio_log_factory_; | 550 media::FakeAudioLogFactory fake_audio_log_factory_; |
551 const scoped_ptr<media::AudioManager> audio_manager( | 551 const scoped_ptr<media::AudioManager> audio_manager( |
552 media::AudioManager::Create(&fake_audio_log_factory_)); | 552 media::AudioManager::Create(&fake_audio_log_factory_)); |
553 CHECK(media::AudioManager::Get()); | 553 CHECK(media::AudioManager::Get()); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 audio_config, | 591 audio_config, |
592 video_config, | 592 video_config, |
593 window_width, | 593 window_width, |
594 window_height); | 594 window_height); |
595 player.Start(); | 595 player.Start(); |
596 | 596 |
597 base::MessageLoop().Run(); // Run forever (i.e., until SIGTERM). | 597 base::MessageLoop().Run(); // Run forever (i.e., until SIGTERM). |
598 NOTREACHED(); | 598 NOTREACHED(); |
599 return 0; | 599 return 0; |
600 } | 600 } |
OLD | NEW |