| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 | 10 |
| 11 #include "webrtc/modules/audio_device/include/audio_device_data_observer.h" | 11 #include "webrtc/modules/audio_device/include/audio_device_data_observer.h" |
| 12 #include "webrtc/rtc_base/checks.h" | 12 #include "webrtc/base/checks.h" |
| 13 #include "webrtc/rtc_base/refcountedobject.h" | 13 #include "webrtc/base/refcountedobject.h" |
| 14 | 14 |
| 15 namespace webrtc { | 15 namespace webrtc { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 // A wrapper over AudioDeviceModule that registers itself as AudioTransport | 19 // A wrapper over AudioDeviceModule that registers itself as AudioTransport |
| 20 // callback and redirects the PCM data to AudioDeviceDataObserver callback. | 20 // callback and redirects the PCM data to AudioDeviceDataObserver callback. |
| 21 class ADMWrapper : public AudioDeviceModule, public AudioTransport { | 21 class ADMWrapper : public AudioDeviceModule, public AudioTransport { |
| 22 public: | 22 public: |
| 23 ADMWrapper(const int32_t id, | 23 ADMWrapper(const int32_t id, |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 new rtc::RefCountedObject<ADMWrapper>(id, audio_layer, observer)); | 375 new rtc::RefCountedObject<ADMWrapper>(id, audio_layer, observer)); |
| 376 | 376 |
| 377 if (!audio_device->IsValid()) { | 377 if (!audio_device->IsValid()) { |
| 378 return nullptr; | 378 return nullptr; |
| 379 } | 379 } |
| 380 | 380 |
| 381 return audio_device; | 381 return audio_device; |
| 382 } | 382 } |
| 383 | 383 |
| 384 } // namespace webrtc | 384 } // namespace webrtc |
| OLD | NEW |