www.pudn.com > direct_mp3.rar > HwAudioRecDlg.h
// HwAudioRecDlg.h : header file
//
#if !defined(AFX_HWAUDIORECDLG_H__EA64A016_33D2_4AA5_A8F6_A207CEB7AB62__INCLUDED_)
#define AFX_HWAUDIORECDLG_H__EA64A016_33D2_4AA5_A8F6_A207CEB7AB62__INCLUDED_
#include "AudioPlayRec.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "AudioPlayRec.h"
/////////////////////////////////////////////////////////////////////////////
// CHwAudioRecDlg dialog
class CHwAudioRecDlg : public CDialog
{
// Construction
public:
int m_nAudioDevicePos;
CHwAudioRecDlg(CWnd* pParent = NULL);
void EnableCtrls ();
// Dialog Data
//{{AFX_DATA(CHwAudioRecDlg)
enum { IDD = IDD_HWAUDIOREC_DIALOG };
CSliderCtrl m_Slider_LineIn;
CSliderCtrl m_Slider_Microphone;
int m_nChannels;
int m_nWaveInDevice;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CHwAudioRecDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CHwAudioRecDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonRec();
afx_msg void OnButtonStop();
virtual void OnOK();
afx_msg void OnButtonPlay();
afx_msg void OnButtonCompact();
afx_msg void OnCheckWave();
afx_msg void OnCheckMp3();
afx_msg void OnCheckLeft();
afx_msg void OnCheckRight();
afx_msg void OnRadioChannel();
afx_msg void OnRADIOWaveInDevice();
afx_msg void OnSelchangeComboAudioDevice();
afx_msg void OnReleasedcaptureSLIDERLineIn(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnReleasedcaptureSLIDERMicrophone(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void SetVolume ( UINT nSliderID );
BOOL AddSaveAudioFile ( CString csExtName );
BOOL AddSaveAudioFile ();
void CheckCtrlClicked ( UINT uSaveCheckCtrlID );
CString GetFileName(BOOL bOpen, LPCTSTR lpszTitle, LPCTSTR lpszFileName=NULL, char *szFilter=NULL);
void StopRecordAudioFile ();
CAudioPlayRec m_Audio;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_HWAUDIORECDLG_H__EA64A016_33D2_4AA5_A8F6_A207CEB7AB62__INCLUDED_)