summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/renderer/media/audio_renderer_impl.cc4
-rw-r--r--chrome/renderer/media/audio_renderer_impl.h8
2 files changed, 6 insertions, 6 deletions
diff --git a/chrome/renderer/media/audio_renderer_impl.cc b/chrome/renderer/media/audio_renderer_impl.cc
index a830b40..9276b0e 100644
--- a/chrome/renderer/media/audio_renderer_impl.cc
+++ b/chrome/renderer/media/audio_renderer_impl.cc
@@ -63,9 +63,9 @@ void AudioRendererImpl::OnStop() {
}
}
-void AudioRendererImpl::OnAssignment(media::Buffer* buffer_in) {
+void AudioRendererImpl::OnReadComplete(media::Buffer* buffer_in) {
// Use the base class to queue the buffer.
- AudioRendererBase::OnAssignment(buffer_in);
+ AudioRendererBase::OnReadComplete(buffer_in);
// Post a task to render thread to notify a packet reception.
render_loop_->PostTask(FROM_HERE,
NewRunnableMethod(this, &AudioRendererImpl::OnNotifyAudioPacketReady));
diff --git a/chrome/renderer/media/audio_renderer_impl.h b/chrome/renderer/media/audio_renderer_impl.h
index 8834f4ec..6945f8a 100644
--- a/chrome/renderer/media/audio_renderer_impl.h
+++ b/chrome/renderer/media/audio_renderer_impl.h
@@ -83,7 +83,7 @@
// Called from AudioRendererBase for stop event.
//
// Audio decoder thread (If there's one.)
-// \-- OnAssignment()
+// \-- OnReadComplete()
// A raw PCM audio packet buffer is received here, this method is called
// from pipeline thread if audio decoder thread does not exist.
@@ -129,15 +129,15 @@ class AudioRendererImpl : public media::AudioRendererBase {
// media::AudioRenderer implementation.
virtual void SetVolume(float volume);
- // AssignableBuffer<AudioRendererBase, BufferInterface> implementation.
- virtual void OnAssignment(media::Buffer* buffer_in);
-
protected:
// Methods called on audio renderer thread ----------------------------------
// These methods are called from AudioRendererBase.
virtual bool OnInitialize(const media::MediaFormat& media_format);
virtual void OnStop();
+ // Called when the decoder completes a Read().
+ virtual void OnReadComplete(media::Buffer* buffer_in);
+
private:
friend class media::FilterFactoryImpl1<AudioRendererImpl,
WebMediaPlayerDelegateImpl*>;