#include <audiocapture.h>
virtual tee3::avd::FakeAudioCapturer::~FakeAudioCapturer |
( |
| ) |
|
|
inlineprotectedvirtual |
virtual Result tee3::avd::FakeAudioCapturer::enable |
( |
bool |
isEnable | ) |
|
|
pure virtual |
当前AVD引擎使用音频导入作为缺省音频源
- 返回
- 返回错误代码: AVD_OK 成功
static bool tee3::avd::FakeAudioCapturer::hasUsedCapturer |
( |
| ) |
|
|
static |
virtual Result tee3::avd::FakeAudioCapturer::inputAACFrame |
( |
uint64 |
timestamp_ns, |
|
|
int |
sampleRate, |
|
|
int |
channels, |
|
|
const uint8 * |
data, |
|
|
size_t |
len, |
|
|
int |
samplesOfEncodedData |
|
) |
| |
|
pure virtual |
给Capturer输入AAC编码后的数据
- 参数
-
[in] | timestamp_ns | 时间戳, nanos second。 |
[in] | sampleRate | 音频采样率 |
[in] | channels | 音频采集通道数 |
[in] | data | 音频内容数据指针 |
[in] | len | 音频内容大小 |
[in] | samplesOfEncodedData | 音频编码数据包含的采样数(一般情况AAC每次编码都是1024 * channels个采样) |
- 返回
- 返回错误代码: AVD_OK 成功
virtual Result tee3::avd::FakeAudioCapturer::inputCapturedFrame |
( |
uint64 |
timestamp_ns, |
|
|
int |
sampleRate, |
|
|
int |
channels, |
|
|
const uint8 * |
data, |
|
|
size_t |
len |
|
) |
| |
|
pure virtual |
给Capturer输入PCM原始数据
- 参数
-
[in] | timestamp_ns | 时间戳, nanos second。 |
[in] | sampleRate | 音频采样率 |
[in] | channels | 音频采集通道数 |
[in] | data | 音频内容数据指针 |
[in] | len | 音频内容大小 |
- 返回
- 返回错误代码: AVD_OK 成功
- 注解
- sampleRate和channels可以变化(但是不能频繁变化,如每次都不一样,内部每次变化的时候需要重新处理缓冲区),每次输入的音频采样数据不能太多,最大不超过4K。
virtual bool tee3::avd::FakeAudioCapturer::isRunning |
( |
| ) |
const |
|
pure virtual |
判断Capturer是否正在运行
- 返回
- 是否在运行。
该类的文档由以下文件生成: