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

Unified Diff: media/base/audio_renderer.h

Issue 403723006: Make media::AudioRenderer inherit from media::TimeSource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « no previous file | media/base/mock_filters.h » ('j') | media/filters/audio_renderer_impl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_renderer.h
diff --git a/media/base/audio_renderer.h b/media/base/audio_renderer.h
index 00a8e7f14ddd84b0163d93d03e9c3a6b63bc40c8..a284f36823cbdf317d3fc16cb505c203051312c8 100644
--- a/media/base/audio_renderer.h
+++ b/media/base/audio_renderer.h
@@ -6,17 +6,16 @@
#define MEDIA_BASE_AUDIO_RENDERER_H_
#include "base/callback.h"
-#include "base/memory/ref_counted.h"
-#include "base/time/time.h"
#include "media/base/buffering_state.h"
#include "media/base/media_export.h"
#include "media/base/pipeline_status.h"
+#include "media/base/time_source.h"
namespace media {
class DemuxerStream;
-class MEDIA_EXPORT AudioRenderer {
+class MEDIA_EXPORT AudioRenderer : public TimeSource {
scherkus (not reviewing) 2014/07/21 17:07:53 alternatively, we can have this interface have a g
xhwang 2014/07/21 22:10:06 The Renderer will do pretty much the same as the A
public:
// First parameter is the current time that has been rendered.
// Second parameter is the maximum time value that the clock cannot exceed.
@@ -46,24 +45,6 @@ class MEDIA_EXPORT AudioRenderer {
const base::Closure& ended_cb,
const PipelineStatusCB& error_cb) = 0;
- // Signal audio playback to start at the current rate. It is expected that
- // |time_cb| will eventually start being run with time updates.
- //
- // TODO(scherkus): Fold into TimeSource API.
- virtual void StartRendering() = 0;
-
- // Signal audio playback to stop until further notice. It is expected that
- // |time_cb| will no longer be run.
- //
- // TODO(scherkus): Fold into TimeSource API.
- virtual void StopRendering() = 0;
-
- // Sets the media time to start rendering from. Only valid to call while not
- // currently rendering.
- //
- // TODO(scherkus): Fold into TimeSource API.
- virtual void SetMediaTime(base::TimeDelta time) = 0;
-
// Discard any audio data, executing |callback| when completed.
//
// Clients should expect |buffering_state_cb| to be called with
@@ -79,11 +60,6 @@ class MEDIA_EXPORT AudioRenderer {
// when complete.
virtual void Stop(const base::Closure& callback) = 0;
- // Updates the current playback rate.
- //
- // TODO(scherkus): Fold into TimeSource API.
- virtual void SetPlaybackRate(float playback_rate) = 0;
-
// Sets the output volume.
virtual void SetVolume(float volume) = 0;
« no previous file with comments | « no previous file | media/base/mock_filters.h » ('j') | media/filters/audio_renderer_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698