| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DEVICE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 scoped_array<int16> output_buffer_; | 314 scoped_array<int16> output_buffer_; |
| 315 | 315 |
| 316 webrtc::AudioDeviceModule::ErrorCode last_error_; | 316 webrtc::AudioDeviceModule::ErrorCode last_error_; |
| 317 | 317 |
| 318 base::TimeTicks last_process_time_; | 318 base::TimeTicks last_process_time_; |
| 319 | 319 |
| 320 // Id of the media session to be started, it tells which device to be used | 320 // Id of the media session to be started, it tells which device to be used |
| 321 // on the input/capture side. | 321 // on the input/capture side. |
| 322 int session_id_; | 322 int session_id_; |
| 323 | 323 |
| 324 // Protects |recording_|. | 324 // Protects |recording_|, |output_delay_ms_|. |
| 325 base::Lock lock_; | 325 mutable base::Lock lock_; |
| 326 | 326 |
| 327 int bytes_per_sample_; | 327 int bytes_per_sample_; |
| 328 | 328 |
| 329 bool initialized_; | 329 bool initialized_; |
| 330 bool playing_; | 330 bool playing_; |
| 331 bool recording_; | 331 bool recording_; |
| 332 | 332 |
| 333 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl); | 333 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl); |
| 334 }; | 334 }; |
| 335 | 335 |
| 336 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ | 336 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ |
| OLD | NEW |