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

Unified Diff: media/base/audio_buffer.h

Issue 251893002: Support start trimming post-decoding. Use it with FFmpegDemuxer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Typo. 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
« no previous file with comments | « no previous file | media/base/audio_buffer.cc » ('j') | media/base/audio_buffer_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_buffer.h
diff --git a/media/base/audio_buffer.h b/media/base/audio_buffer.h
index 902407f4adf66053b690dd23a4ab0c863f53bd82..04dca38f562558dbc92c8c3cb33a170bcb07346c 100644
--- a/media/base/audio_buffer.h
+++ b/media/base/audio_buffer.h
@@ -87,6 +87,11 @@ class MEDIA_EXPORT AudioBuffer
// Duration is adjusted to reflect the fewer frames.
void TrimEnd(int frames_to_trim);
+ // Trim an AudioBuffer by removing |end - start| frames starting at |start|
+ // and ending at |end|; i.e. exclusive. Even if start is zero, timestamp() is
+ // not adjusted, only duration().
+ void TrimRange(int start, int end);
+
// Return the number of channels.
int channel_count() const { return channel_count_; }
« no previous file with comments | « no previous file | media/base/audio_buffer.cc » ('j') | media/base/audio_buffer_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698