2 Star 17 Fork 6

TKG/record_qt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
MediaDevice.h 718 Bytes
一键复制 编辑 原始数据 按行查看 历史
TKG 提交于 2020-02-20 10:30 . header file
#ifndef MEDIADEVICE_H
#define MEDIADEVICE_H
#include <QObject>
#include "common/AudioParam.h"
class MediaDevice : public QObject
{
Q_OBJECT
public:
enum MediaDeviceType {
MediaDeviceType_Input,
MediaDeviceType_Output
};
public:
MediaDevice(QObject *parent = nullptr);
virtual ~MediaDevice();
virtual AudioParam getParam();
virtual void setDeviceId(const QString &deviceId);
virtual QString getDeviceId();
virtual bool isPrepare() = 0;
protected:
virtual bool init() = 0;
virtual bool capture() = 0;
public slots:
virtual void run() = 0;
// member data
protected:
QString m_deviceId;
AudioParam m_param;
};
#endif // MEDIADEVICE_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/slcode/record_qt.git
git@gitee.com:slcode/record_qt.git
slcode
record_qt
record_qt
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385