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

Unified Diff: media/filters/audio_renderer_impl.h

Issue 15872004: Disable preroll duration increase on underflow for MediaSource playback. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address CR comments Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/pipeline.cc ('k') | media/filters/audio_renderer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_impl.h
diff --git a/media/filters/audio_renderer_impl.h b/media/filters/audio_renderer_impl.h
index 820275107131d277411d4e6043c5dae8f7cd2e37..d96bfdd152eaa9e15776bb9615e03edb974c1f08 100644
--- a/media/filters/audio_renderer_impl.h
+++ b/media/filters/audio_renderer_impl.h
@@ -52,10 +52,14 @@ class MEDIA_EXPORT AudioRendererImpl
//
// |set_decryptor_ready_cb| is fired when the audio decryptor is available
// (only applicable if the stream is encrypted and we have a decryptor).
+ //
+ // |increase_preroll_on_underflow| Set to true if the preroll duration
+ // should be increased when ResumeAfterUnderflow() is called.
AudioRendererImpl(const scoped_refptr<base::MessageLoopProxy>& message_loop,
AudioRendererSink* sink,
ScopedVector<AudioDecoder> decoders,
- const SetDecryptorReadyCB& set_decryptor_ready_cb);
+ const SetDecryptorReadyCB& set_decryptor_ready_cb,
+ bool increase_preroll_on_underflow);
virtual ~AudioRendererImpl();
// AudioRenderer implementation.
@@ -74,7 +78,7 @@ class MEDIA_EXPORT AudioRendererImpl
virtual void SetPlaybackRate(float rate) OVERRIDE;
virtual void Preroll(base::TimeDelta time,
const PipelineStatusCB& cb) OVERRIDE;
- virtual void ResumeAfterUnderflow(bool buffer_more_audio) OVERRIDE;
+ virtual void ResumeAfterUnderflow() OVERRIDE;
virtual void SetVolume(float volume) OVERRIDE;
// Disables underflow support. When used, |state_| will never transition to
@@ -256,6 +260,7 @@ class MEDIA_EXPORT AudioRendererImpl
size_t total_frames_filled_;
bool underflow_disabled_;
+ bool increase_preroll_on_underflow_;
// True if the renderer receives a buffer with kAborted status during preroll,
// false otherwise. This flag is cleared on the next Preroll() call.
« no previous file with comments | « media/base/pipeline.cc ('k') | media/filters/audio_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698