OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Audio rendering unit utilizing an AudioRendererSink to output data. | 5 // Audio rendering unit utilizing an AudioRendererSink to output data. |
6 // | 6 // |
7 // This class lives inside three threads during it's lifetime, namely: | 7 // This class lives inside three threads during it's lifetime, namely: |
8 // 1. Render thread | 8 // 1. Render thread |
9 // Where the object is created. | 9 // Where the object is created. |
10 // 2. Media thread (provided via constructor) | 10 // 2. Media thread (provided via constructor) |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 void SetPlaybackRate(double rate) override; | 74 void SetPlaybackRate(double rate) override; |
75 void SetMediaTime(base::TimeDelta time) override; | 75 void SetMediaTime(base::TimeDelta time) override; |
76 base::TimeDelta CurrentMediaTime() override; | 76 base::TimeDelta CurrentMediaTime() override; |
77 bool GetWallClockTimes( | 77 bool GetWallClockTimes( |
78 const std::vector<base::TimeDelta>& media_timestamps, | 78 const std::vector<base::TimeDelta>& media_timestamps, |
79 std::vector<base::TimeTicks>* wall_clock_times) override; | 79 std::vector<base::TimeTicks>* wall_clock_times) override; |
80 | 80 |
81 // AudioRenderer implementation. | 81 // AudioRenderer implementation. |
82 void Initialize(DemuxerStream* stream, | 82 void Initialize(DemuxerStream* stream, |
83 const PipelineStatusCB& init_cb, | 83 const PipelineStatusCB& init_cb, |
84 const SetCdmReadyCB& set_cdm_ready_cb, | 84 CdmContext* cdm_context, |
85 const StatisticsCB& statistics_cb, | 85 const StatisticsCB& statistics_cb, |
86 const BufferingStateCB& buffering_state_cb, | 86 const BufferingStateCB& buffering_state_cb, |
87 const base::Closure& ended_cb, | 87 const base::Closure& ended_cb, |
88 const PipelineStatusCB& error_cb, | 88 const PipelineStatusCB& error_cb, |
89 const base::Closure& waiting_for_decryption_key_cb) override; | 89 const base::Closure& waiting_for_decryption_key_cb) override; |
90 TimeSource* GetTimeSource() override; | 90 TimeSource* GetTimeSource() override; |
91 void Flush(const base::Closure& callback) override; | 91 void Flush(const base::Closure& callback) override; |
92 void StartPlaying() override; | 92 void StartPlaying() override; |
93 void SetVolume(float volume) override; | 93 void SetVolume(float volume) override; |
94 | 94 |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 284 |
285 // NOTE: Weak pointers must be invalidated before all other member variables. | 285 // NOTE: Weak pointers must be invalidated before all other member variables. |
286 base::WeakPtrFactory<AudioRendererImpl> weak_factory_; | 286 base::WeakPtrFactory<AudioRendererImpl> weak_factory_; |
287 | 287 |
288 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); | 288 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); |
289 }; | 289 }; |
290 | 290 |
291 } // namespace media | 291 } // namespace media |
292 | 292 |
293 #endif // MEDIA_RENDERERS_AUDIO_RENDERER_IMPL_H_ | 293 #endif // MEDIA_RENDERERS_AUDIO_RENDERER_IMPL_H_ |
OLD | NEW |