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

Unified Diff: media/renderers/audio_renderer_impl.h

Issue 2366373003: Not for submission. fastSeek prototype. (Closed)
Patch Set: Created 4 years, 3 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/mojo/clients/mojo_renderer.cc ('k') | media/renderers/audio_renderer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/renderers/audio_renderer_impl.h
diff --git a/media/renderers/audio_renderer_impl.h b/media/renderers/audio_renderer_impl.h
index d76ba06621e94ba6bd0a3a5d2cc39097b5965122..2a22ed6f34becd7157b09344eeabab76f4bb4198 100644
--- a/media/renderers/audio_renderer_impl.h
+++ b/media/renderers/audio_renderer_impl.h
@@ -33,6 +33,7 @@
#include "media/base/audio_renderer_sink.h"
#include "media/base/decryptor.h"
#include "media/base/media_log.h"
+#include "media/base/stream_position.h"
#include "media/base/time_source.h"
#include "media/filters/audio_renderer_algorithm.h"
#include "media/filters/decoder_stream.h"
@@ -73,6 +74,7 @@ class MEDIA_EXPORT AudioRendererImpl
void StopTicking() override;
void SetPlaybackRate(double rate) override;
void SetMediaTime(base::TimeDelta time) override;
+ void SetMediaTime_Locked(base::TimeDelta time);
base::TimeDelta CurrentMediaTime() override;
bool GetWallClockTimes(
const std::vector<base::TimeDelta>& media_timestamps,
@@ -85,7 +87,7 @@ class MEDIA_EXPORT AudioRendererImpl
const PipelineStatusCB& init_cb) override;
TimeSource* GetTimeSource() override;
void Flush(const base::Closure& callback) override;
- void StartPlaying() override;
+ void StartPlayingFrom(StreamPosition position) override;
void SetVolume(float volume) override;
// base::PowerObserver implementation.
@@ -290,6 +292,8 @@ class MEDIA_EXPORT AudioRendererImpl
// suspend/is suspended and when it resumes.
bool is_suspending_;
+ bool start_rendering_from_first_frame_ = false;
+
// End variables which must be accessed under |lock_|. ----------------------
// NOTE: Weak pointers must be invalidated before all other member variables.
« no previous file with comments | « media/mojo/clients/mojo_renderer.cc ('k') | media/renderers/audio_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698