| 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);
|
| };
|
|
|
|
|