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

Unified Diff: chromecast/media/cma/backend/audio_decoder_default.h

Issue 2583213003: [chromecast] Adds MediaSinkDefault. (Closed)
Patch Set: simple sink Created 3 years, 11 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 | « chromecast/media/cma/backend/BUILD.gn ('k') | chromecast/media/cma/backend/audio_decoder_default.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/backend/audio_decoder_default.h
diff --git a/chromecast/media/cma/backend/audio_decoder_default.h b/chromecast/media/cma/backend/audio_decoder_default.h
index ea712dad6b613d957ba339611dbfbc14ff63050b..142de3b98968b62ba5fb9b936d86ff8b49c21a45 100644
--- a/chromecast/media/cma/backend/audio_decoder_default.h
+++ b/chromecast/media/cma/backend/audio_decoder_default.h
@@ -5,21 +5,26 @@
#ifndef CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_DECODER_DEFAULT_H_
#define CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_DECODER_DEFAULT_H_
-#include <stdint.h>
+#include <memory>
#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
+#include "base/time/time.h"
#include "chromecast/public/media/media_pipeline_backend.h"
namespace chromecast {
namespace media {
+class MediaSinkDefault;
+
class AudioDecoderDefault : public MediaPipelineBackend::AudioDecoder {
public:
AudioDecoderDefault();
~AudioDecoderDefault() override;
- int64_t last_push_pts() const { return last_push_pts_; }
+ void Start(base::TimeDelta start_pts);
+ void Stop();
+ void SetPlaybackRate(float rate);
+ base::TimeDelta GetCurrentPts();
// MediaPipelineBackend::AudioDecoder implementation:
void SetDelegate(Delegate* delegate) override;
@@ -31,12 +36,8 @@ class AudioDecoderDefault : public MediaPipelineBackend::AudioDecoder {
RenderingDelay GetRenderingDelay() override;
private:
- void OnEndOfStream();
-
Delegate* delegate_;
- int64_t last_push_pts_;
- base::WeakPtrFactory<AudioDecoderDefault> weak_factory_;
-
+ std::unique_ptr<MediaSinkDefault> sink_;
DISALLOW_COPY_AND_ASSIGN(AudioDecoderDefault);
};
« no previous file with comments | « chromecast/media/cma/backend/BUILD.gn ('k') | chromecast/media/cma/backend/audio_decoder_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698