1/* 2 * Copyright 2022 The WebRTC project authors. All Rights Reserved. 3 * 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 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11#include "objc_audio_device_module.h" 12 13#include "api/make_ref_counted.h" 14#include "rtc_base/logging.h" 15 16#include "sdk/objc/native/src/objc_audio_device.h" 17 18namespace webrtc { 19 20rtc::scoped_refptr<AudioDeviceModule> CreateAudioDeviceModule( 21 id<RTC_OBJC_TYPE(RTCAudioDevice)> audio_device) { 22 RTC_DLOG(LS_INFO) << __FUNCTION__; 23 return rtc::make_ref_counted<objc_adm::ObjCAudioDeviceModule>(audio_device); 24} 25 26} // namespace webrtc 27