59 lines
1.1 KiB
C
59 lines
1.1 KiB
C
|
#pragma once
|
|||
|
// PlayerTest1.h : PROJECT_NAME Ӧ<>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD>ļ<EFBFBD>
|
|||
|
//
|
|||
|
#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:
|
|||
|
// <20><>ʼ<EFBFBD><CABC>TCPMP<4D><50><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
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);
|
|||
|
};
|