www.pudn.com > LECTEUR-MP3.zip > MusGestDoc.h


// MusGestDoc.h : interface of the CMusGestDoc class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MUSGESTDOC_H__3B9E96B4_E45B_400B_8607_6FF6DC793BAA__INCLUDED_) 
#define AFX_MUSGESTDOC_H__3B9E96B4_E45B_400B_8607_6FF6DC793BAA__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
#include "fmod.h" 
#include "fmod_errors.h" 
#include "RepExplorer.h" 
 
class CFileView; 
class CMusGestDoc : public CDocument 
{ 
protected: // create from serialization only 
	CMusGestDoc(); 
	DECLARE_DYNCREATE(CMusGestDoc) 
 
// Attributes 
public: 
 
// Operations 
public: 
 
	int PlayFile(CRepFile * pFile); 
	int PauseFile(CRepFile * pFile); 
	int StopFile(CRepFile * pFile); 
 
	int DownVolume(); 
	int UpVolume(); 
	int ChangeVolume(float fVol); 
	int GetVolume(); 
 
	int ChangeBalance(int iBal);//entre -100 et 100 
	int GetBalance(); 
 
	void SetMute(bool bMute); 
 
	bool AvancePos(); 
	bool ReculePos(); 
	bool ChangePos(int iPosMs); 
 
	void SetParentView(CFileView * pView) {m_pParentView = pView;} 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMusGestDoc) 
	public: 
	virtual BOOL OnNewDocument(); 
	virtual void Serialize(CArchive& ar); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CMusGestDoc(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
	 
protected: 
 
	 
	FMOD_SYSTEM   * m_pSystem; 
    FMOD_SOUND    * m_pSound; 
    FMOD_CHANNEL  * m_pChannel; 
 
	CString m_strInPlayFilename; 
	CFileView * m_pParentView; 
 
	float m_fVol,m_fBal; 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CMusGestDoc) 
		// NOTE - the ClassWizard will add and remove member functions here. 
		//    DO NOT EDIT what you see in these blocks of generated code ! 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MUSGESTDOC_H__3B9E96B4_E45B_400B_8607_6FF6DC793BAA__INCLUDED_)