cn.tee3.avd_SDK-Objectc  2.1.0
构造函数 | 类方法 | 所有成员列表
AVDFakeAudioCapturer类 参考

音频流导入接口. 更多...

类 AVDFakeAudioCapturer 继承关系图:

构造函数

(BOOL) - isRunning
 判断Capturer是否正在运行 更多...
 
(AVDResult- enable:
 当前AVD引擎使用音频导入作为缺省音频源 更多...
 
(AVDResult- inputCapturedFrame:sampleRate:channels:pts:
 给Capturer输入PCM原始数据 更多...
 
((unavailable("init is not a supported initializer for this class.") - __attribute__
 

类方法

(AVDFakeAudioCapturer *) + instance
 获取一个音频采集器对象 更多...
 
(AVDResult+ destory
 释放音频采集器对象, 空操作,此对象的生命期管理转到内部控制 更多...
 

详细描述

音频流导入接口.

音频导入相关功能接口。

函数文档

◆ __attribute__()

- (( unavailable("init is not a supported initializer for this class.") __attribute__

◆ destory()

+ (AVDResult) destory

释放音频采集器对象, 空操作,此对象的生命期管理转到内部控制

◆ enable:()

- (AVDResult) enable: (BOOL)  isEnable

当前AVD引擎使用音频导入作为缺省音频源

返回
返回错误代码: AVD_OK 成功

◆ inputCapturedFrame:sampleRate:channels:pts:()

- (AVDResult) inputCapturedFrame: (NSData *)  sample
sampleRate: (NSInteger)  sampleRate
channels: (NSInteger)  channels
pts: (NSInteger)  pts 

给Capturer输入PCM原始数据

参数
[in]pts时间戳, nanos second。
[in]sampleRate音频采样率
[in]channels音频采集通道数
[in]sample音频内容数据指针
返回
返回错误代码: AVD_OK 成功 Err_Invalid_Arg 参数不合法,可忽略 Err_Wrong_Status 状态不对,可忽略

◆ instance()

+ (AVDFakeAudioCapturer*) instance

获取一个音频采集器对象

返回
音频采集器对象指针。
注解
音频采集器整个引擎对象只有一个,为所有房间共用;

◆ isRunning()

- (BOOL) isRunning

判断Capturer是否正在运行

返回
是否在运行。

该类的文档由以下文件生成: