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

Unified Diff: media/audio/audio_buffers_state.h

Issue 9689015: Remove unused AudioBuffersState member. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 9 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 | « content/common/media/audio_messages.h ('k') | media/audio/audio_buffers_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_buffers_state.h
===================================================================
--- media/audio/audio_buffers_state.h (revision 126381)
+++ media/audio/audio_buffers_state.h (working copy)
@@ -5,17 +5,17 @@
#ifndef MEDIA_AUDIO_AUDIO_BUFFERS_STATE_H_
#define MEDIA_AUDIO_AUDIO_BUFFERS_STATE_H_
-#include "base/time.h"
#include "media/base/media_export.h"
-// AudioBuffersState struct stores current state of audio buffers along with
-// the timestamp of the moment this state corresponds to. It is used for audio
-// synchronization.
+// AudioBuffersState struct stores current state of audio buffers.
+// It is used for audio synchronization.
struct MEDIA_EXPORT AudioBuffersState {
AudioBuffersState();
AudioBuffersState(int pending_bytes, int hardware_delay_bytes);
- int total_bytes();
+ int total_bytes() {
+ return pending_bytes + hardware_delay_bytes;
+ }
// Number of bytes we currently have in our software buffer.
int pending_bytes;
@@ -23,12 +23,6 @@
// Number of bytes that have been written to the device, but haven't
// been played yet.
int hardware_delay_bytes;
-
- // Timestamp of the moment when the buffers state was captured. It is used
- // to account for the time it takes to deliver AudioBuffersState from
- // the browser process to the renderer.
- base::Time timestamp;
};
-
#endif // MEDIA_AUDIO_AUDIO_BUFFERS_STATE_H_
« no previous file with comments | « content/common/media/audio_messages.h ('k') | media/audio/audio_buffers_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698