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 #include "content/renderer/media/webrtc_audio_device_impl.h" | 5 #include "content/renderer/media/webrtc_audio_device_impl.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/win/windows_version.h" | 9 #include "base/win/windows_version.h" |
10 #include "content/renderer/media/audio_hardware.h" | 10 #include "content/renderer/media/audio_hardware.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 output_buffer_size_(0), | 22 output_buffer_size_(0), |
23 input_channels_(0), | 23 input_channels_(0), |
24 output_channels_(0), | 24 output_channels_(0), |
25 input_sample_rate_(0), | 25 input_sample_rate_(0), |
26 output_sample_rate_(0), | 26 output_sample_rate_(0), |
27 input_delay_ms_(0), | 27 input_delay_ms_(0), |
28 output_delay_ms_(0), | 28 output_delay_ms_(0), |
29 last_error_(AudioDeviceModule::kAdmErrNone), | 29 last_error_(AudioDeviceModule::kAdmErrNone), |
30 last_process_time_(base::TimeTicks::Now()), | 30 last_process_time_(base::TimeTicks::Now()), |
31 session_id_(0), | 31 session_id_(0), |
| 32 bytes_per_sample_(0), |
32 initialized_(false), | 33 initialized_(false), |
33 playing_(false), | 34 playing_(false), |
34 recording_(false) { | 35 recording_(false) { |
35 DVLOG(1) << "WebRtcAudioDeviceImpl::WebRtcAudioDeviceImpl()"; | 36 DVLOG(1) << "WebRtcAudioDeviceImpl::WebRtcAudioDeviceImpl()"; |
36 DCHECK(RenderThreadImpl::current()) << | 37 DCHECK(RenderThreadImpl::current()) << |
37 "WebRtcAudioDeviceImpl must be constructed on the render thread"; | 38 "WebRtcAudioDeviceImpl must be constructed on the render thread"; |
38 } | 39 } |
39 | 40 |
40 WebRtcAudioDeviceImpl::~WebRtcAudioDeviceImpl() { | 41 WebRtcAudioDeviceImpl::~WebRtcAudioDeviceImpl() { |
41 DVLOG(1) << "WebRtcAudioDeviceImpl::~WebRtcAudioDeviceImpl()"; | 42 DVLOG(1) << "WebRtcAudioDeviceImpl::~WebRtcAudioDeviceImpl()"; |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
981 } | 982 } |
982 | 983 |
983 int32_t WebRtcAudioDeviceImpl::GetLoudspeakerStatus(bool* enabled) const { | 984 int32_t WebRtcAudioDeviceImpl::GetLoudspeakerStatus(bool* enabled) const { |
984 NOTIMPLEMENTED(); | 985 NOTIMPLEMENTED(); |
985 return -1; | 986 return -1; |
986 } | 987 } |
987 | 988 |
988 void WebRtcAudioDeviceImpl::SetSessionId(int session_id) { | 989 void WebRtcAudioDeviceImpl::SetSessionId(int session_id) { |
989 session_id_ = session_id; | 990 session_id_ = session_id; |
990 } | 991 } |
OLD | NEW |