OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_ | 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_ |
6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_ | 6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_ |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "chromecast/media/cma/backend/alsa/stream_mixer_alsa_input.h" | 10 #include "chromecast/media/cma/backend/alsa/stream_mixer_alsa_input.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 67 |
68 MediaPipelineBackendAlsa* const backend_; | 68 MediaPipelineBackendAlsa* const backend_; |
69 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 69 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
70 MediaPipelineBackend::Decoder::Delegate* delegate_; | 70 MediaPipelineBackend::Decoder::Delegate* delegate_; |
71 | 71 |
72 Statistics stats_; | 72 Statistics stats_; |
73 bool is_eos_; | 73 bool is_eos_; |
74 bool error_; | 74 bool error_; |
75 | 75 |
76 AudioConfig config_; | 76 AudioConfig config_; |
77 scoped_ptr<CastAudioDecoder> decoder_; | 77 std::unique_ptr<CastAudioDecoder> decoder_; |
78 | 78 |
79 int64_t current_pts_; | 79 int64_t current_pts_; |
80 int64_t last_buffer_pts_; | 80 int64_t last_buffer_pts_; |
81 | 81 |
82 scoped_ptr<StreamMixerAlsaInput> mixer_input_; | 82 std::unique_ptr<StreamMixerAlsaInput> mixer_input_; |
83 RenderingDelay last_known_delay_; | 83 RenderingDelay last_known_delay_; |
84 float volume_multiplier_; | 84 float volume_multiplier_; |
85 | 85 |
86 base::WeakPtrFactory<AudioDecoderAlsa> weak_factory_; | 86 base::WeakPtrFactory<AudioDecoderAlsa> weak_factory_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(AudioDecoderAlsa); | 88 DISALLOW_COPY_AND_ASSIGN(AudioDecoderAlsa); |
89 }; | 89 }; |
90 | 90 |
91 } // namespace media | 91 } // namespace media |
92 } // namespace chromecast | 92 } // namespace chromecast |
93 | 93 |
94 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_ | 94 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_AUDIO_DECODER_ALSA_H_ |
OLD | NEW |