tpRecordInterface类
ExternUtils
2025-07-05
基础信息
头文件: | include <tpRecordInterface.h> |
---|---|
Cmake: | None |
发布版本: | V0.1.0 |
继承类: | |
派生类: |
Public 成员函数
tpRecordInterface(const tpString &device="default") | ||
---|---|---|
~tpRecordInterface() | ||
openDevice() | 打开录音设备 | |
closeDevice() | 关闭录音设备 | |
isOpen() | 判断设备是否打开 | |
recordStart(tpString &file, AudioType type=TP_RECORD_TYPE_WAV, AudioBitRate rate=TP_AUDIO_BITRATE_128K) | 录音开始 | |
recordStart(const char *file, AudioType type=TP_RECORD_TYPE_WAV, AudioBitRate rate=TP_AUDIO_BITRATE_128K) | ||
getStream(tpUInt8 *data) | ||
recordContinue() | 继续录音 | |
recordPause() | 暂停录音 | |
recordStop() | 录音结束 |
成员函数说明
tpRecordInterface::tpRecordInterface(const tpString &device="default")
暂无注释...
tpRecordInterface::~tpRecordInterface()
暂无注释...
int tpRecordInterface::openDevice()
点击查看...
打开录音设备
返回值:
linebreak
int tpRecordInterface::closeDevice()
点击查看...
关闭录音设备
返回值:
linebreak
tpBool tpRecordInterface::isOpen()
点击查看...
判断设备是否打开
返回值:
linebreak
int tpRecordInterface::recordStart(tpString &file, AudioType type=TP_RECORD_TYPE_WAV, AudioBitRate rate=TP_AUDIO_BITRATE_128K)
点击查看...
录音开始
返回值:
linebreak
int tpRecordInterface::recordStart(const char *file, AudioType type=TP_RECORD_TYPE_WAV, AudioBitRate rate=TP_AUDIO_BITRATE_128K)
暂无注释...
int tpRecordInterface::getStream(tpUInt8 *data)
暂无注释...
int tpRecordInterface::recordContinue()
点击查看...
继续录音
返回值:
linebreak
int tpRecordInterface::recordPause()
点击查看...
暂停录音
返回值:
linebreak
int tpRecordInterface::recordStop()
点击查看...
录音结束
返回值:
linebreak