| 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 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 int queued_frames_; | 162 int queued_frames_; |
| 163 double queued_frames_including_resampler_; | 163 double queued_frames_including_resampler_; |
| 164 MediaPipelineBackendAlsa::RenderingDelay mixer_rendering_delay_; | 164 MediaPipelineBackendAlsa::RenderingDelay mixer_rendering_delay_; |
| 165 // End of members that queue_lock_ controls access for. | 165 // End of members that queue_lock_ controls access for. |
| 166 | 166 |
| 167 int current_buffer_offset_; | 167 int current_buffer_offset_; |
| 168 int max_queued_frames_; | 168 int max_queued_frames_; |
| 169 int fade_frames_remaining_; | 169 int fade_frames_remaining_; |
| 170 int fade_out_frames_total_; | 170 int fade_out_frames_total_; |
| 171 int zeroed_frames_; // current count of consecutive 0-filled frames | 171 int zeroed_frames_; // current count of consecutive 0-filled frames |
| 172 bool is_underflowing_; |
| 172 | 173 |
| 173 OnReadyToDeleteCb delete_cb_; | 174 OnReadyToDeleteCb delete_cb_; |
| 174 | 175 |
| 175 std::unique_ptr<::media::MultiChannelResampler> resampler_; | 176 std::unique_ptr<::media::MultiChannelResampler> resampler_; |
| 176 | 177 |
| 177 base::WeakPtr<StreamMixerAlsaInputImpl> weak_this_; | 178 base::WeakPtr<StreamMixerAlsaInputImpl> weak_this_; |
| 178 base::WeakPtrFactory<StreamMixerAlsaInputImpl> weak_factory_; | 179 base::WeakPtrFactory<StreamMixerAlsaInputImpl> weak_factory_; |
| 179 | 180 |
| 180 DISALLOW_COPY_AND_ASSIGN(StreamMixerAlsaInputImpl); | 181 DISALLOW_COPY_AND_ASSIGN(StreamMixerAlsaInputImpl); |
| 181 }; | 182 }; |
| 182 | 183 |
| 183 } // namespace media | 184 } // namespace media |
| 184 } // namespace chromecast | 185 } // namespace chromecast |
| 185 | 186 |
| 186 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_STREAM_MIXER_ALSA_INPUT_IMPL_H_ | 187 #endif // CHROMECAST_MEDIA_CMA_BACKEND_ALSA_STREAM_MIXER_ALSA_INPUT_IMPL_H_ |
| OLD | NEW |