OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_not_impl.h" | 5 #include "content/renderer/media/webrtc_audio_device_not_impl.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 WebRtcAudioDeviceNotImpl::WebRtcAudioDeviceNotImpl() | 9 WebRtcAudioDeviceNotImpl::WebRtcAudioDeviceNotImpl() |
10 : last_process_time_(base::TimeTicks::Now()) { | 10 : last_process_time_(base::TimeTicks::Now()) { |
11 } | 11 } |
12 | 12 |
13 int32_t WebRtcAudioDeviceNotImpl::ChangeUniqueId(const int32_t id) { | |
14 return 0; | |
15 } | |
16 | |
17 int64_t WebRtcAudioDeviceNotImpl::TimeUntilNextProcess() { | 13 int64_t WebRtcAudioDeviceNotImpl::TimeUntilNextProcess() { |
18 const int64_t kMillisecondsBetweenProcessCalls = 5000; | 14 const int64_t kMillisecondsBetweenProcessCalls = 5000; |
19 base::TimeDelta delta_time = (base::TimeTicks::Now() - last_process_time_); | 15 base::TimeDelta delta_time = (base::TimeTicks::Now() - last_process_time_); |
20 return kMillisecondsBetweenProcessCalls - delta_time.InMilliseconds(); | 16 return kMillisecondsBetweenProcessCalls - delta_time.InMilliseconds(); |
21 } | 17 } |
22 | 18 |
23 int32_t WebRtcAudioDeviceNotImpl::Process() { | 19 int32_t WebRtcAudioDeviceNotImpl::Process() { |
24 last_process_time_ = base::TimeTicks::Now(); | 20 last_process_time_ = base::TimeTicks::Now(); |
25 return 0; | 21 return 0; |
26 } | 22 } |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 | 265 |
270 bool WebRtcAudioDeviceNotImpl::BuiltInAECIsAvailable() const { | 266 bool WebRtcAudioDeviceNotImpl::BuiltInAECIsAvailable() const { |
271 return false; | 267 return false; |
272 } | 268 } |
273 | 269 |
274 int32_t WebRtcAudioDeviceNotImpl::EnableBuiltInAEC(bool enable) { | 270 int32_t WebRtcAudioDeviceNotImpl::EnableBuiltInAEC(bool enable) { |
275 return 0; | 271 return 0; |
276 } | 272 } |
277 | 273 |
278 } // namespace content | 274 } // namespace content |
OLD | NEW |