📄 pocketmp3dlg.h
字号:
// PocketMP3Dlg.h : header file
//
#if !defined(AFX_POCKETMP3DLG_H__39A4312C_AB3B_41CB_B7F2_040C5EA39229__INCLUDED_)
#define AFX_POCKETMP3DLG_H__39A4312C_AB3B_41CB_B7F2_040C5EA39229__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include "all.h"
#include "args.h"
#include "crc.h"
#include "header.h"
#include "subband.h"
#include "sublay1.h"
#include "sublay2.h"
#include "synfilt.h"
#include "ibitstr.h"
#include "obuffer.h"
#include "args.h"
#include "layer3.h"
/////////////////////////////////////////////////////////////////////////////
// CPocketMP3Dlg dialog
class CPocketMP3Dlg : public CDialog
{
// Construction
public:
bool MPEG_play();
void maplay_Exit(uint32 returncode);
bool reinit_MPEG();
CPocketMP3Dlg(CWnd* pParent = NULL); // standard constructor
SynthesisFilter *filter1, *filter2 ;
Obuffer *buffer ;
LayerIII_Decoder *l3decoder;
HANDLE MPEG_Thread;//播放线程句柄
HANDLE exitMPEG_Thread;//播放线程退出句柄
// HANDLE maplay_Exit_done;//表示“线程推出任务已经完成”的事件
unsigned int scroll_range;
bool playing;//播放标志
bool paused;//暂停标志
// Dialog Data
//{{AFX_DATA(CPocketMP3Dlg)
enum { IDD = IDD_POCKETMP3_DIALOG };
CEdit m_ctlEditName;
CStatic m_ctlStatus;
CSliderCtrl m_ctlSlider;
CListCtrl m_ctlList;
CButton m_ctlBtnStop;
CButton m_ctlBtnPlay;
CButton m_ctlBtnPause;
CButton m_ctlBtnOpen;
CString m_strName;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPocketMP3Dlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
private:
static uint32 maplay(LPVOID pVoid);
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CPocketMP3Dlg)
virtual BOOL OnInitDialog();
afx_msg void OnBtnplay();
afx_msg void OnBtnopen();
afx_msg void OnBtnpause();
afx_msg void OnBtnstop();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_POCKETMP3DLG_H__39A4312C_AB3B_41CB_B7F2_040C5EA39229__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -