OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 // the client buffer size is not the same as the output device buffer size. | 234 // the client buffer size is not the same as the output device buffer size. |
235 scoped_ptr<media::AudioPullFifo> audio_fifo_; | 235 scoped_ptr<media::AudioPullFifo> audio_fifo_; |
236 | 236 |
237 // Contains the accumulated delay estimate which is provided to the WebRTC | 237 // Contains the accumulated delay estimate which is provided to the WebRTC |
238 // AEC. | 238 // AEC. |
239 int audio_delay_milliseconds_; | 239 int audio_delay_milliseconds_; |
240 | 240 |
241 // Delay due to the FIFO in milliseconds. | 241 // Delay due to the FIFO in milliseconds. |
242 int fifo_delay_milliseconds_; | 242 int fifo_delay_milliseconds_; |
243 | 243 |
| 244 // Contains the accumulated number of skipped frames which is provided to the |
| 245 // WebRTC AEC. Accessed on audio render thread. |
| 246 uint32_t skipped_frames_; |
| 247 |
244 base::TimeDelta current_time_; | 248 base::TimeDelta current_time_; |
245 | 249 |
246 // Saved volume and playing state of the root renderer. | 250 // Saved volume and playing state of the root renderer. |
247 PlayingState playing_state_; | 251 PlayingState playing_state_; |
248 | 252 |
249 // Audio params used by the sink of the renderer. | 253 // Audio params used by the sink of the renderer. |
250 media::AudioParameters sink_params_; | 254 media::AudioParameters sink_params_; |
251 | 255 |
252 // The preferred device id of the output device or empty for the default | 256 // The preferred device id of the output device or empty for the default |
253 // output device. Can change as a result of a SetSinkId() call. | 257 // output device. Can change as a result of a SetSinkId() call. |
(...skipping 10 matching lines...) Expand all Loading... |
264 // Used for triggering new UMA histogram. Counts number of render | 268 // Used for triggering new UMA histogram. Counts number of render |
265 // callbacks modulo |kNumCallbacksBetweenRenderTimeHistograms|. | 269 // callbacks modulo |kNumCallbacksBetweenRenderTimeHistograms|. |
266 int render_callback_count_; | 270 int render_callback_count_; |
267 | 271 |
268 DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcAudioRenderer); | 272 DISALLOW_IMPLICIT_CONSTRUCTORS(WebRtcAudioRenderer); |
269 }; | 273 }; |
270 | 274 |
271 } // namespace content | 275 } // namespace content |
272 | 276 |
273 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_ | 277 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_RENDERER_H_ |
OLD | NEW |