cn.tee3.avd_SDK-C++
2.1.0
|
音频流导入接口. 更多...
Public 成员函数 | |
virtual bool | isRunning () const =0 |
判断Capturer是否正在运行 更多... | |
virtual Result | inputCapturedFrame (uint64 timestamp_ns, int sampleRate, int channels, const uint8 *data, size_t len)=0 |
给Capturer输入PCM原始数据 更多... | |
virtual Result | inputAACFrame (uint64 timestamp_ns, int sampleRate, int channels, const uint8 *data, size_t len, int samplesOfEncodedData)=0 |
给Capturer输入AAC编码后的数据 更多... | |
virtual Result | enable (bool isEnable)=0 |
当前AVD引擎使用音频导入作为缺省音频源 更多... | |
静态 Public 成员函数 | |
static FakeAudioCapturer * | Instance () |
获取音频采集器单例对象 更多... | |
static void | Destroy (FakeAudioCapturer *capturer) |
销毁一个音频采集器对象 更多... | |
static bool | hasUsedCapturer () |
Protected 成员函数 | |
virtual | ~FakeAudioCapturer () |
音频流导入接口.
音频导入相关功能接口。
|
protectedvirtual |
|
static |
销毁一个音频采集器对象
[in] | *capturer | 音频采集器对象指针。 |
|
pure virtual |
当前AVD引擎使用音频导入作为缺省音频源
|
static |
|
pure virtual |
给Capturer输入AAC编码后的数据
[in] | timestamp_ns | 时间戳, nanos second。 |
[in] | sampleRate | 音频采样率 |
[in] | channels | 音频采集通道数 |
[in] | data | 音频内容数据指针 |
[in] | len | 音频内容大小 |
[in] | samplesOfEncodedData | 音频编码数据包含的采样数(一般情况AAC每次编码都是1024 * channels个采样) |
|
pure virtual |
给Capturer输入PCM原始数据
[in] | timestamp_ns | 时间戳, nanos second。 |
[in] | sampleRate | 音频采样率 |
[in] | channels | 音频采集通道数 |
[in] | data | 音频内容数据指针 |
[in] | len | 音频内容大小 |
|
static |
获取音频采集器单例对象
|
pure virtual |
判断Capturer是否正在运行