-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAudioPlay.h
59 lines (48 loc) · 1.16 KB
/
AudioPlay.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#pragma once
#include <vector>
using namespace std;
#include "LCAudioThrDll.h"
#pragma comment(lib,"LCAudioThrDll.lib")
#include "ConfigEnumDef.h"
#include "SoundBase.h"
#include "math.h"
#include "DataM.h"
enum enBroadcastType{
ENUM_BROAD_SINGLE = 0,
ENUM_BROAD_GROUP,
ENUM_BROAD_ALL,
};
class CAudioPlay
{
public:
CAudioPlay(void);
~CAudioPlay(void);
int play(char* filePath, _PlayParam& mParam, char* ip);
int play(char* filePath, _PlayParam& mParam, vector<DWORD>& vecIPS);
int stop(_PlayParam& mParam);
int status(_PlayParam& mParam);
int pausePlay(_PlayParam& mParam);
int continuePlay(_PlayParam& mParam);
private:
void SetModel(enPlaySrc enModel);
void SetBroadType(enBroadcastType enType);
void SetIP(char* IP);
void SetGroupID(int groupID);
public:
void initparm(_PlayParam& mParam);
//void pushParms();
private:
//_PlayParam m_Param;
enPlaySrc m_enModel;
enBroadcastType m_enBroadcastType;
ULONG m_ipAddr;
INT m_GroupID;//Ä¿±ê×éºÅ
// private:
// vector<_PlayParam> m_vecParams;
public:
void RecordInit();
void RecordStart();
void RecordStop();
private:
CSoundBase * m_pPlayer;
};