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 |
13 int64_t WebRtcAudioDeviceNotImpl::TimeUntilNextProcess() { | 17 int64_t WebRtcAudioDeviceNotImpl::TimeUntilNextProcess() { |
14 const int64_t kMillisecondsBetweenProcessCalls = 5000; | 18 const int64_t kMillisecondsBetweenProcessCalls = 5000; |
15 base::TimeDelta delta_time = (base::TimeTicks::Now() - last_process_time_); | 19 base::TimeDelta delta_time = (base::TimeTicks::Now() - last_process_time_); |
16 return kMillisecondsBetweenProcessCalls - delta_time.InMilliseconds(); | 20 return kMillisecondsBetweenProcessCalls - delta_time.InMilliseconds(); |
17 } | 21 } |
18 | 22 |
19 int32_t WebRtcAudioDeviceNotImpl::Process() { | 23 int32_t WebRtcAudioDeviceNotImpl::Process() { |
20 last_process_time_ = base::TimeTicks::Now(); | 24 last_process_time_ = base::TimeTicks::Now(); |
21 return 0; | 25 return 0; |
22 } | 26 } |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 269 |
266 bool WebRtcAudioDeviceNotImpl::BuiltInAECIsAvailable() const { | 270 bool WebRtcAudioDeviceNotImpl::BuiltInAECIsAvailable() const { |
267 return false; | 271 return false; |
268 } | 272 } |
269 | 273 |
270 int32_t WebRtcAudioDeviceNotImpl::EnableBuiltInAEC(bool enable) { | 274 int32_t WebRtcAudioDeviceNotImpl::EnableBuiltInAEC(bool enable) { |
271 return 0; | 275 return 0; |
272 } | 276 } |
273 | 277 |
274 } // namespace content | 278 } // namespace content |
OLD | NEW |