| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 #include "webrtc/base/platform_thread.h" | 10 #include "webrtc/base/platform_thread.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 FileAudioDevice::~FileAudioDevice() { | 48 FileAudioDevice::~FileAudioDevice() { |
| 49 delete &_outputFile; | 49 delete &_outputFile; |
| 50 delete &_inputFile; | 50 delete &_inputFile; |
| 51 } | 51 } |
| 52 | 52 |
| 53 int32_t FileAudioDevice::ActiveAudioLayer( | 53 int32_t FileAudioDevice::ActiveAudioLayer( |
| 54 AudioDeviceModule::AudioLayer& audioLayer) const { | 54 AudioDeviceModule::AudioLayer& audioLayer) const { |
| 55 return -1; | 55 return -1; |
| 56 } | 56 } |
| 57 | 57 |
| 58 int32_t FileAudioDevice::Init() { return 0; } | 58 AudioDeviceGeneric::InitStatus FileAudioDevice::Init() { |
| 59 return InitStatus::OK; |
| 60 } |
| 59 | 61 |
| 60 int32_t FileAudioDevice::Terminate() { return 0; } | 62 int32_t FileAudioDevice::Terminate() { return 0; } |
| 61 | 63 |
| 62 bool FileAudioDevice::Initialized() const { return true; } | 64 bool FileAudioDevice::Initialized() const { return true; } |
| 63 | 65 |
| 64 int16_t FileAudioDevice::PlayoutDevices() { | 66 int16_t FileAudioDevice::PlayoutDevices() { |
| 65 return 1; | 67 return 1; |
| 66 } | 68 } |
| 67 | 69 |
| 68 int16_t FileAudioDevice::RecordingDevices() { | 70 int16_t FileAudioDevice::RecordingDevices() { |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 | 526 |
| 525 uint64_t deltaTimeMillis = _clock->CurrentNtpInMilliseconds() - currentTime; | 527 uint64_t deltaTimeMillis = _clock->CurrentNtpInMilliseconds() - currentTime; |
| 526 if(deltaTimeMillis < 10) { | 528 if(deltaTimeMillis < 10) { |
| 527 SleepMs(10 - deltaTimeMillis); | 529 SleepMs(10 - deltaTimeMillis); |
| 528 } | 530 } |
| 529 | 531 |
| 530 return true; | 532 return true; |
| 531 } | 533 } |
| 532 | 534 |
| 533 } // namespace webrtc | 535 } // namespace webrtc |
| OLD | NEW |