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

Unified Diff: media/base/audio_buffer.h

Issue 261533002: Remove AudioBuffer::set_duration(), instead base on frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix content decryptor Created 6 years, 8 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
Index: media/base/audio_buffer.h
diff --git a/media/base/audio_buffer.h b/media/base/audio_buffer.h
index 5d7ab7f5c6700cd05413a691e07408d43177bc53..2401ed81dd5bdb85a3763b93d9397f1074475be6 100644
--- a/media/base/audio_buffer.h
+++ b/media/base/audio_buffer.h
@@ -42,8 +42,7 @@ class MEDIA_EXPORT AudioBuffer
int sample_rate,
int frame_count,
const uint8* const* data,
- const base::TimeDelta timestamp,
- const base::TimeDelta duration);
+ const base::TimeDelta timestamp);
// Create an AudioBuffer with |frame_count| frames. Buffer is allocated, but
// not initialized. Timestamp and duration are set to kNoTimestamp().
@@ -59,8 +58,7 @@ class MEDIA_EXPORT AudioBuffer
int channel_count,
int sample_rate,
int frame_count,
- const base::TimeDelta timestamp,
- const base::TimeDelta duration);
+ const base::TimeDelta timestamp);
// Create a AudioBuffer indicating we've reached end of stream.
// Calling any method other than end_of_stream() on the resulting buffer
@@ -102,7 +100,6 @@ class MEDIA_EXPORT AudioBuffer
base::TimeDelta timestamp() const { return timestamp_; }
base::TimeDelta duration() const { return duration_; }
void set_timestamp(base::TimeDelta timestamp) { timestamp_ = timestamp; }
- void set_duration(base::TimeDelta duration) { duration_ = duration; }
// If there's no data in this buffer, it represents end of stream.
bool end_of_stream() const { return end_of_stream_; }
@@ -126,8 +123,7 @@ class MEDIA_EXPORT AudioBuffer
int frame_count,
bool create_buffer,
const uint8* const* data,
- const base::TimeDelta timestamp,
- const base::TimeDelta duration);
+ const base::TimeDelta timestamp);
virtual ~AudioBuffer();

Powered by Google App Engine
This is Rietveld 408576698