mp3.h

来自「evc的mp3播放类」· C头文件 代码 · 共 68 行

H
68
字号
#if !defined(AFX_MP3_H__5ECA6878_87EE_4E18_B7FA_0DB56F3FDC74__INCLUDED_)
#define AFX_MP3_H__5ECA6878_87EE_4E18_B7FA_0DB56F3FDC74__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Mp3.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CMp3 window
#include "dshow.h"
enum mp3const
{
	S_NOLOAD,
	S_PLAY,
	S_PAUSE,
	S_STOP,
	S_LOAD
};
class CMp3 : public CWnd
{
// Construction
public:
	CMp3(CWnd* pParent = NULL);

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMp3)
	//}}AFX_VIRTUAL

// Implementation
public:
	HRESULT GetZCount(LONGLONG* cnt);
	HRESULT GetCurPosi(LONGLONG *curposi);
	HRESULT Stop();
	mp3const m_bStat;
	HRESULT Pause();
	HRESULT Play();
	CWnd* m_pParentWnd;
	IGraphBuilder *m_pGraph;
    IMediaControl *m_pControl;
    IMediaEventEx *m_pEvent;
	IMediaSeeking *m_pSeek;
	HRESULT LoadFile(unsigned short* filename);
	virtual ~CMp3();

	// Generated message map functions
protected:
	//{{AFX_MSG(CMp3)
	//}}AFX_MSG
	afx_msg void OnGraphNotify(WPARAM wParam, LPARAM lParam);//WM_GRAPHNOTIFY
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MP3_H__5ECA6878_87EE_4E18_B7FA_0DB56F3FDC74__INCLUDED_)

⌨️ 快捷键说明

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