| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_DECODER_WRAPPER_H_ | |
| 6 #define CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_DECODER_WRAPPER_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "chromecast/public/media/media_pipeline_backend.h" | |
| 10 | |
| 11 namespace chromecast { | |
| 12 namespace media { | |
| 13 | |
| 14 class AudioDecoderWrapper : public MediaPipelineBackend::AudioDecoder { | |
| 15 public: | |
| 16 explicit AudioDecoderWrapper( | |
| 17 MediaPipelineBackend::AudioDecoder* audio_decoder); | |
| 18 ~AudioDecoderWrapper() override; | |
| 19 | |
| 20 // MediaPipelineBackend::AudioDecoder implementation: | |
| 21 void SetDelegate(Delegate* delegate) override; | |
| 22 MediaPipelineBackend::BufferStatus PushBuffer( | |
| 23 CastDecoderBuffer* buffer) override; | |
| 24 void GetStatistics(Statistics* statistics) override; | |
| 25 bool SetConfig(const AudioConfig& config) override; | |
| 26 bool SetVolume(float multiplier) override; | |
| 27 RenderingDelay GetRenderingDelay() override; | |
| 28 | |
| 29 bool SetStreamTypeVolume(float stream_type_volume); | |
| 30 | |
| 31 private: | |
| 32 MediaPipelineBackend::AudioDecoder* const audio_decoder_; | |
| 33 float stream_type_volume_; | |
| 34 float stream_volume_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(AudioDecoderWrapper); | |
| 37 }; | |
| 38 | |
| 39 } // namespace media | |
| 40 } // namespace chromecast | |
| 41 | |
| 42 #endif // CHROMECAST_MEDIA_CMA_BACKEND_AUDIO_DECODER_WRAPPER_H_ | |
| OLD | NEW |