⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xplayercore.h

📁 实现了录音,放音功能!在evc4.0下编译功过,wince5.0下能正常录音,放音,暂停录放音!
💻 H
字号:


/*
 *
§==================§==================§==================§==================§
§			       §				   §				     §				    §
§  2005-05-18      §		1.0	         §	 高炜		    §   creat!		    §
§			       §				   §				     §				    §
§==================§==================§==================§==================§
 *
 */
#ifndef _XPLAYER_CORE_H_
#define _XPLAYER_CORE_H_


#include "xplayer_state.h"


#ifdef XPLAYERCORE_EXPORTS
#define XPLAYERCORE_API __declspec(dllexport)
#else
#define XPLAYERCORE_API __declspec(dllimport)
#endif


#define XPLAYER_OK  1
#define XPLAYER_ERR 0

// This class is exported from the XPlayerCore.dll
class XPLAYERCORE_API CXPlayerCore {
public:
	CXPlayerCore();			//HWND h_wnd
	~CXPlayerCore();

	int xplaying_open(SYS_FILE_CONTENT_TYPE* indicator, HWND hwnd);

	//控制命令,播放、停止、暂停、搜索、全屏
	int	xplaying_command(cp_command_t command, DWORD param);

	int xplaying_set_volume(unsigned int	volume);	//设置音量
	int xplaying_get_volume(unsigned int*	volume);	//获取音量

	int xplaying_get_state(playing_state_t* state);		//获取播放状态
	int xplaying_get_play_progress(unsigned int*		progress);	//获取播放进度

	int xplaying_get_play_Timelen (unsigned int*		Timelen);	//获取正在播放媒体长度,单位秒
	int xplaying_get_play_info(char**	info);						//获取正在播放媒体信息,单位秒

	int xplaying_get_mediainfo(SYS_FILE_CONTENT_TYPE* indicatorP, char *title, unsigned int *length);//获取指定媒体信息和长度						//获取媒体信息

private:

	void *m_mp;

};

XPLAYERCORE_API int fnXPlayerCore(void);

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -