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

Side by Side Diff: media/filters/audio_renderer_impl.h

Issue 436053002: Make media::AudioClock track frames written to compute time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
« no previous file with comments | « media/filters/audio_clock_unittest.cc ('k') | media/filters/audio_renderer_impl.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 // 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 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // Keep track of our outstanding read to |decoder_|. 242 // Keep track of our outstanding read to |decoder_|.
243 bool pending_read_; 243 bool pending_read_;
244 244
245 // Keeps track of whether we received and rendered the end of stream buffer. 245 // Keeps track of whether we received and rendered the end of stream buffer.
246 bool received_end_of_stream_; 246 bool received_end_of_stream_;
247 bool rendered_end_of_stream_; 247 bool rendered_end_of_stream_;
248 248
249 scoped_ptr<AudioClock> audio_clock_; 249 scoped_ptr<AudioClock> audio_clock_;
250 250
251 base::TimeDelta start_timestamp_; 251 base::TimeDelta start_timestamp_;
252 base::TimeDelta last_timestamp_update_;
252 253
253 // End variables which must be accessed under |lock_|. ---------------------- 254 // End variables which must be accessed under |lock_|. ----------------------
254 255
255 // NOTE: Weak pointers must be invalidated before all other member variables. 256 // NOTE: Weak pointers must be invalidated before all other member variables.
256 base::WeakPtrFactory<AudioRendererImpl> weak_factory_; 257 base::WeakPtrFactory<AudioRendererImpl> weak_factory_;
257 258
258 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); 259 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl);
259 }; 260 };
260 261
261 } // namespace media 262 } // namespace media
262 263
263 #endif // MEDIA_FILTERS_AUDIO_RENDERER_IMPL_H_ 264 #endif // MEDIA_FILTERS_AUDIO_RENDERER_IMPL_H_
OLDNEW
« no previous file with comments | « media/filters/audio_clock_unittest.cc ('k') | media/filters/audio_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698