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

Unified Diff: media/base/audio_renderer.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/base/BUILD.gn ('k') | media/base/audio_renderer.cc » ('j') | no next file with comments »
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 48cf7b7266cb5dc779c4175bf3db783227b84967..5f4eb42d2eda21c85d064fcd18d82dac61679dd9 100644
--- a/media/base/audio_renderer.h
+++ b/media/base/audio_renderer.h
@@ -11,6 +11,7 @@
#include "media/base/buffering_state.h"
#include "media/base/media_export.h"
#include "media/base/pipeline_status.h"
+#include "media/base/stream_position.h"
namespace media {
@@ -21,10 +22,10 @@ class TimeSource;
class MEDIA_EXPORT AudioRenderer {
public:
- AudioRenderer();
+ AudioRenderer() = default;
// Stop all operations and fire all pending callbacks.
- virtual ~AudioRenderer();
+ virtual ~AudioRenderer() = default;
// Initialize an AudioRenderer with |stream|, executing |init_cb| upon
// completion. If initialization fails, only |init_cb|
@@ -49,7 +50,7 @@ class MEDIA_EXPORT AudioRenderer {
// Starts playback by reading from |stream| and decoding and rendering audio.
//
// Only valid to call after a successful Initialize() or Flush().
- virtual void StartPlaying() = 0;
+ virtual void StartPlayingFrom(StreamPosition position) = 0;
// Sets the output volume.
virtual void SetVolume(float volume) = 0;
« no previous file with comments | « media/base/BUILD.gn ('k') | media/base/audio_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698