blob: 2c333f9d73818b7300dfd28c172299751be1c9a9 [file] [log] [blame]
tkchind4bfbfc2016-08-30 11:56:05 -07001/*
2 * Copyright 2016 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
Anders Carlsson7bca8ca2018-08-30 09:30:29 +020011#import "RTCAudioSource.h"
tkchind4bfbfc2016-08-30 11:56:05 -070012
13#import "RTCMediaSource+Private.h"
14
Mirko Bonadeia81e9c82020-05-04 16:14:32 +020015@interface RTC_OBJC_TYPE (RTCAudioSource)
16()
tkchind4bfbfc2016-08-30 11:56:05 -070017
Mirko Bonadeia81e9c82020-05-04 16:14:32 +020018 /**
19 * The AudioSourceInterface object passed to this RTCAudioSource during
20 * construction.
21 */
22 @property(nonatomic,
23 readonly) rtc::scoped_refptr<webrtc::AudioSourceInterface> nativeAudioSource;
tkchind4bfbfc2016-08-30 11:56:05 -070024
25/** Initialize an RTCAudioSource from a native AudioSourceInterface. */
Mirko Bonadeia81e9c82020-05-04 16:14:32 +020026- (instancetype)initWithFactory:(RTC_OBJC_TYPE(RTCPeerConnectionFactory) *)factory
Yura Yaroshevich01cee072018-07-11 15:35:40 +030027 nativeAudioSource:(rtc::scoped_refptr<webrtc::AudioSourceInterface>)nativeAudioSource
tkchind4bfbfc2016-08-30 11:56:05 -070028 NS_DESIGNATED_INITIALIZER;
29
Mirko Bonadeia81e9c82020-05-04 16:14:32 +020030- (instancetype)initWithFactory:(RTC_OBJC_TYPE(RTCPeerConnectionFactory) *)factory
Yura Yaroshevich01cee072018-07-11 15:35:40 +030031 nativeMediaSource:(rtc::scoped_refptr<webrtc::MediaSourceInterface>)nativeMediaSource
32 type:(RTCMediaSourceType)type NS_UNAVAILABLE;
tkchind4bfbfc2016-08-30 11:56:05 -070033
34@end