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_STREAM_MIXER_ALSA_INPUT_IMPL_H_ | 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_ALSA_STREAM_MIXER_ALSA_INPUT_IMPL_H_ |
6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_STREAM_MIXER_ALSA_INPUT_IMPL_H_ | 6 #define CHROMECAST_MEDIA_CMA_BACKEND_ALSA_STREAM_MIXER_ALSA_INPUT_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 std::deque<scoped_refptr<DecoderBufferBase>> queue_; | 153 std::deque<scoped_refptr<DecoderBufferBase>> queue_; |
154 int queued_frames_; | 154 int queued_frames_; |
155 int queued_frames_including_resampler_; | 155 int queued_frames_including_resampler_; |
156 MediaPipelineBackendAlsa::RenderingDelay mixer_rendering_delay_; | 156 MediaPipelineBackendAlsa::RenderingDelay mixer_rendering_delay_; |
157 // End of members that queue_lock_ controls access for. | 157 // End of members that queue_lock_ controls access for. |
158 | 158 |
159 int current_buffer_offset_; | 159 int current_buffer_offset_; |
160 int max_queued_frames_; | 160 int max_queued_frames_; |
161 int fade_frames_remaining_; | 161 int fade_frames_remaining_; |
162 int fade_out_frames_total_; | 162 int fade_out_frames_total_; |
| 163 int zeroed_frames_; // current count of consecutive 0-filled frames |
163 | 164 |
164 OnReadyToDeleteCb delete_cb_; | 165 OnReadyToDeleteCb delete_cb_; |
165 | 166 |
166 scoped_ptr<::media::MultiChannelResampler> resampler_; | 167 scoped_ptr<::media::MultiChannelResampler> resampler_; |
167 | 168 |
168 base::WeakPtr<StreamMixerAlsaInputImpl> weak_this_; | 169 base::WeakPtr<StreamMixerAlsaInputImpl> weak_this_; |
169 base::WeakPtrFactory<StreamMixerAlsaInputImpl> weak_factory_; | 170 base::WeakPtrFactory<StreamMixerAlsaInputImpl> weak_factory_; |
170 | 171 |
171 DISALLOW_COPY_AND_ASSIGN(StreamMixerAlsaInputImpl); | 172 DISALLOW_COPY_AND_ASSIGN(StreamMixerAlsaInputImpl); |
172 }; | 173 }; |
173 | 174 |
174 } // namespace media | 175 } // namespace media |
175 } // namespace chromecast | 176 } // namespace chromecast |
176 | 177 |
177 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_STREAM_MIXER_ALSA_INPUT_IMPL_H_ | 178 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_STREAM_MIXER_ALSA_INPUT_IMPL_H_ |
OLD | NEW |