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

Unified Diff: media/base/buffer_queue.h

Issue 155695: Replace the guts of AudioRendererBase with calls to scaling algorithm. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/media/audio_renderer_impl.cc ('k') | media/base/buffer_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/buffer_queue.h
===================================================================
--- media/base/buffer_queue.h (revision 22189)
+++ media/base/buffer_queue.h (working copy)
@@ -39,9 +39,8 @@
// Enqueues |buffer_in| and adds a reference.
void Enqueue(Buffer* buffer_in);
- // Returns the timestamp of the first buffer plus |data_offset_| in
- // microseconds, calculated using the conversion |bytes_to_sec|.
- base::TimeDelta GetTime(double bytes_to_sec);
+ // Returns the current timestamp, taking into account |data_offset_|.
+ base::TimeDelta GetTime();
// Returns true if the |queue_| is empty.
bool IsEmpty();
@@ -59,6 +58,10 @@
// Keeps track of the |queue_| size in bytes.
size_t size_in_bytes_;
+ // Keeps track of the most recent time we've seen in case the |queue_| is
+ // empty when our owner asks what time it is.
+ base::TimeDelta most_recent_time_;
+
DISALLOW_COPY_AND_ASSIGN(BufferQueue);
};
« no previous file with comments | « chrome/renderer/media/audio_renderer_impl.cc ('k') | media/base/buffer_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698