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

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

Issue 3032030: Implement accurate seeking by decoding audio/video until we reach our desired timestamp. (Closed)
Patch Set: Fixes Created 10 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
« no previous file with comments | « no previous file | media/filters/audio_renderer_base.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // AudioRendererBase takes care of the tricky queuing work and provides simple 5 // AudioRendererBase takes care of the tricky queuing work and provides simple
6 // methods for subclasses to peek and poke at audio data. In addition to 6 // methods for subclasses to peek and poke at audio data. In addition to
7 // AudioRenderer interface methods this classes doesn't implement, subclasses 7 // AudioRenderer interface methods this classes doesn't implement, subclasses
8 // must also implement the following methods: 8 // must also implement the following methods:
9 // OnInitialized 9 // OnInitialized
10 // OnStop 10 // OnStop
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 size_t pending_reads_; 128 size_t pending_reads_;
129 129
130 // Audio time at end of last call to FillBuffer(). 130 // Audio time at end of last call to FillBuffer().
131 // TODO(ralphl): Update this value after seeking. 131 // TODO(ralphl): Update this value after seeking.
132 base::TimeDelta last_fill_buffer_time_; 132 base::TimeDelta last_fill_buffer_time_;
133 133
134 // Filter callbacks. 134 // Filter callbacks.
135 scoped_ptr<FilterCallback> pause_callback_; 135 scoped_ptr<FilterCallback> pause_callback_;
136 scoped_ptr<FilterCallback> seek_callback_; 136 scoped_ptr<FilterCallback> seek_callback_;
137 137
138 base::TimeDelta seek_timestamp_;
139
138 DISALLOW_COPY_AND_ASSIGN(AudioRendererBase); 140 DISALLOW_COPY_AND_ASSIGN(AudioRendererBase);
139 }; 141 };
140 142
141 } // namespace media 143 } // namespace media
142 144
143 #endif // MEDIA_FILTERS_AUDIO_RENDERER_BASE_H_ 145 #endif // MEDIA_FILTERS_AUDIO_RENDERER_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | media/filters/audio_renderer_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698