代码拉取完成,页面将自动刷新
#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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。