| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |