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