1 Star 1 Fork 1

Devin / XPlay3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
XAudioThread.h 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
Devin 提交于 2021-10-23 13:08 . 提交工程
#ifndef XAUDIOTHREAD_H
#define XAUDIOTHREAD_H
#include "XDecodeThread.h"
#include "XResample.h"
#include "XAudioPlay.h"
#include <QMutex>
class XAudioThread : public XDecodeThread
{
public:
XAudioThread();
virtual ~XAudioThread();
public:
/******************************************
* 函数名: Open
* 输入参数:_qstrUrl:打开视频的串
* 输出参数:无
* 返回值:true:成功,false:失败
* 其他:
******************************************/
bool Open(AVCodecParameters *_AVCParam, int iSampleRate,int _iChannels);
/******************************************
* 函数名: Close
* 输入参数:无
* 输出参数:无
* 返回值:无
* 其他:
******************************************/
void Close();
/******************************************
* 函数名: run
* 输入参数:无
* 输出参数:无
* 返回值:无
* 其他:
******************************************/
void run();
public:
qint64 qi64Pts = 0;
private:
QMutex m_qmtxAudioThread;
XAudioPlay *m_pxAudioPlay = nullptr;
XResample *m_pxResample = nullptr;
};
#endif // XAUDIOTHREAD_H
1
https://gitee.com/yixinglong/xplay3.git
git@gitee.com:yixinglong/xplay3.git
yixinglong
xplay3
XPlay3
master

搜索帮助