webrtc/sdk/objc/native/api/objc_audio_device_module.mm
Yury Yaroshevich 1d0b0aed97 ObjC ADM: added RTCAudioDevice protocol [2/N]
Bug: webrtc:14193
Change-Id: I616c4d338a0bbc57c22e1f1dcc4454512aecd967
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/268195
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Reviewed-by: Peter Hanspers <peterhanspers@webrtc.org>
Commit-Queue: Yury Yarashevich <yura.yaroshevich@gmail.com>
Cr-Commit-Position: refs/heads/main@{#37925}
2022-08-29 11:14:22 +00:00

26 lines
845 B
Text

/*
* Copyright 2022 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#include "objc_audio_device_module.h"
#include "api/make_ref_counted.h"
#include "rtc_base/logging.h"
#include "sdk/objc/native/src/objc_audio_device.h"
namespace webrtc {
rtc::scoped_refptr<AudioDeviceModule> CreateAudioDeviceModule(
id<RTC_OBJC_TYPE(RTCAudioDevice)> audio_device) {
RTC_DLOG(LS_INFO) << __FUNCTION__;
return rtc::make_ref_counted<objc_adm::ObjCAudioDeviceModule>(audio_device);
}
} // namespace webrtc