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

Side by Side Diff: content/renderer/media/audio_renderer_impl.h

Issue 6969026: Convert Filter::Seek() to use new callback system. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More CR fixes Created 9 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/media/audio_renderer_impl.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Audio rendering unit utilizing audio output stream provided by browser 5 // Audio rendering unit utilizing audio output stream provided by browser
6 // process through IPC. 6 // process through IPC.
7 // 7 //
8 // Relationship of classes. 8 // Relationship of classes.
9 // 9 //
10 // AudioRendererHost AudioRendererImpl 10 // AudioRendererHost AudioRendererImpl
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual void OnCreated(base::SharedMemoryHandle handle, uint32 length); 66 virtual void OnCreated(base::SharedMemoryHandle handle, uint32 length);
67 virtual void OnLowLatencyCreated(base::SharedMemoryHandle handle, 67 virtual void OnLowLatencyCreated(base::SharedMemoryHandle handle,
68 base::SyncSocket::Handle socket_handle, 68 base::SyncSocket::Handle socket_handle,
69 uint32 length); 69 uint32 length);
70 virtual void OnVolume(double volume); 70 virtual void OnVolume(double volume);
71 71
72 // Methods called on pipeline thread ---------------------------------------- 72 // Methods called on pipeline thread ----------------------------------------
73 // media::Filter implementation. 73 // media::Filter implementation.
74 virtual void SetPlaybackRate(float rate); 74 virtual void SetPlaybackRate(float rate);
75 virtual void Pause(media::FilterCallback* callback); 75 virtual void Pause(media::FilterCallback* callback);
76 virtual void Seek(base::TimeDelta time, media::FilterCallback* callback); 76 virtual void Seek(base::TimeDelta time, const media::FilterStatusCB& cb);
77 virtual void Play(media::FilterCallback* callback); 77 virtual void Play(media::FilterCallback* callback);
78 78
79 // media::AudioRenderer implementation. 79 // media::AudioRenderer implementation.
80 virtual void SetVolume(float volume); 80 virtual void SetVolume(float volume);
81 81
82 protected: 82 protected:
83 // Methods called on audio renderer thread ---------------------------------- 83 // Methods called on audio renderer thread ----------------------------------
84 // These methods are called from AudioRendererBase. 84 // These methods are called from AudioRendererBase.
85 virtual bool OnInitialize(const media::AudioDecoderConfig& config); 85 virtual bool OnInitialize(const media::AudioDecoderConfig& config);
86 virtual void OnStop(); 86 virtual void OnStop();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // State variables for prerolling. 147 // State variables for prerolling.
148 bool prerolling_; 148 bool prerolling_;
149 149
150 // Remaining bytes for prerolling to complete. 150 // Remaining bytes for prerolling to complete.
151 uint32 preroll_bytes_; 151 uint32 preroll_bytes_;
152 152
153 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl); 153 DISALLOW_COPY_AND_ASSIGN(AudioRendererImpl);
154 }; 154 };
155 155
156 #endif // CONTENT_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_ 156 #endif // CONTENT_RENDERER_MEDIA_AUDIO_RENDERER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/audio_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698