59 lines
1.1 KiB
C++
Executable File
59 lines
1.1 KiB
C++
Executable File
#pragma once
|
|
// PlayerTest1.h : PROJECT_NAME 应用程序的主头文件
|
|
//
|
|
#include "../common/common.h"
|
|
|
|
#define TCPMPCLASS "{36816029-BEA1-4dbf-BA81-B7C97CF7331F}"
|
|
|
|
void FormatTcpmpString(char* pChar, tchar_t* pTChar);
|
|
|
|
class CTcpmpPlayer
|
|
{
|
|
private:
|
|
player* m_Player;
|
|
bool m_HasFile;
|
|
public:
|
|
CTcpmpPlayer(void);
|
|
public:
|
|
~CTcpmpPlayer(void);
|
|
public:
|
|
// 初始化TCPMP播放器
|
|
bool Init(char* pVersion,int iVer = 1,void* pVideoWnd = NULL);
|
|
public:
|
|
void SetDisplayRect(LPRECT lRect);
|
|
public:
|
|
bool Play(bool bPause);
|
|
public:
|
|
void Stop(void);
|
|
public:
|
|
BOOL IsPlaying(void);
|
|
public:
|
|
tick_t GetDuration(void);
|
|
public:
|
|
int GetVolume(void);
|
|
public:
|
|
bool SetVolume(int iVolum);
|
|
public:
|
|
bool SetMute(bool bMute);
|
|
public:
|
|
bool GetMute(void);
|
|
public:
|
|
int SetCurrentPlayFile(char* pFileName);
|
|
public:
|
|
bool HasPlayFile(void);
|
|
public:
|
|
tick_t GetPossion(void);
|
|
public:
|
|
bool SetPossion(time_t tTime);
|
|
public:
|
|
player* GetPlayerPtr(void);
|
|
public:
|
|
void SetPlayerNotify(LPVOID pWnd, long playerNotifyFunc);
|
|
public:
|
|
bool Next(void);
|
|
public:
|
|
bool Prev(void);
|
|
public:
|
|
CString GetPlayFileName(void);
|
|
};
|