| 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 #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/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/win/windows_version.h" | 10 #include "base/win/windows_version.h" |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 SetMicrophoneVolume(new_mic_level); | 209 SetMicrophoneVolume(new_mic_level); |
| 210 } | 210 } |
| 211 } | 211 } |
| 212 | 212 |
| 213 void WebRtcAudioDeviceImpl::SetCaptureFormat( | 213 void WebRtcAudioDeviceImpl::SetCaptureFormat( |
| 214 const media::AudioParameters& params) { | 214 const media::AudioParameters& params) { |
| 215 DVLOG(1) << "WebRtcAudioDeviceImpl::SetCaptureFormat()"; | 215 DVLOG(1) << "WebRtcAudioDeviceImpl::SetCaptureFormat()"; |
| 216 input_audio_parameters_ = params; | 216 input_audio_parameters_ = params; |
| 217 } | 217 } |
| 218 | 218 |
| 219 void WebRtcAudioDeviceImpl::OnCaptureDeviceStopped() { | |
| 220 DVLOG(1) << "WebRtcAudioDeviceImpl::OnCaptureDeviceStopped()"; | |
| 221 } | |
| 222 | |
| 223 int32_t WebRtcAudioDeviceImpl::ChangeUniqueId(const int32_t id) { | 219 int32_t WebRtcAudioDeviceImpl::ChangeUniqueId(const int32_t id) { |
| 224 NOTIMPLEMENTED(); | 220 NOTIMPLEMENTED(); |
| 225 return -1; | 221 return -1; |
| 226 } | 222 } |
| 227 | 223 |
| 228 int32_t WebRtcAudioDeviceImpl::TimeUntilNextProcess() { | 224 int32_t WebRtcAudioDeviceImpl::TimeUntilNextProcess() { |
| 229 // Calculate the number of milliseconds until this module wants its | 225 // Calculate the number of milliseconds until this module wants its |
| 230 // Process method to be called. | 226 // Process method to be called. |
| 231 base::TimeDelta delta_time = (base::TimeTicks::Now() - last_process_time_); | 227 base::TimeDelta delta_time = (base::TimeTicks::Now() - last_process_time_); |
| 232 int64 time_until_next = | 228 int64 time_until_next = |
| (...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 858 NOTIMPLEMENTED(); | 854 NOTIMPLEMENTED(); |
| 859 return -1; | 855 return -1; |
| 860 } | 856 } |
| 861 | 857 |
| 862 int32_t WebRtcAudioDeviceImpl::GetLoudspeakerStatus(bool* enabled) const { | 858 int32_t WebRtcAudioDeviceImpl::GetLoudspeakerStatus(bool* enabled) const { |
| 863 NOTIMPLEMENTED(); | 859 NOTIMPLEMENTED(); |
| 864 return -1; | 860 return -1; |
| 865 } | 861 } |
| 866 | 862 |
| 867 } // namespace content | 863 } // namespace content |
| OLD | NEW |