#if !defined(AFX_CAPTUREWAVEDIALOG_H__2CE91F3A_FA74_494A_A7B4_EF7832B74D0C__INCLUDED_) #define AFX_CAPTUREWAVEDIALOG_H__2CE91F3A_FA74_494A_A7B4_EF7832B74D0C__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 // CaptureWaveDialog.h : header file // #ifndef NO_LEADTOOLS_MULTIMEDIA_SUPPORT #include "ltmm.h" #define DICOM_WAVE_SUITABLE_FREQUENCY 8000 #define DICOM_WAVE_SUITABLE_BITS 8 #define DICOM_WAVE_SUITABLE_CHANNELS 1 ///////////////////////////////////////////////////////////////////////////// // CCaptureWaveDialog dialog class CCaptureWaveDialog : public CDialog { // Construction public: CCaptureWaveDialog(CWnd* pParent = NULL); // standard constructor ~CCaptureWaveDialog(); // standard constructor // Dialog Data //{{AFX_DATA(CCaptureWaveDialog) enum { IDD = IDD_DIALOG_CAPTURE_AUDIO }; CComboBox m_AudioDevices; //}}AFX_DATA // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CCaptureWaveDialog) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL public: BOOL IsMMCapabilities(); L_INT32 GetAudioDeviceCount(); BOOL GetAudioDevices(CString *pAudioDeviceNameArray, L_INT32 nArraySize); BOOL SelectAudioDevice(L_INT32 nIndex); BOOL SetTargetWaveFileName(const CString& strFileName); BOOL SetTargetFormatAudio(); BOOL StartCapture(); BOOL StopCapture(); void CStringToBSTR(const CString& str,BSTR * bstr); // Select an audio format that will give 8KHz, 8Bits and Mono L_INT GetDICOMAudioFormatIndex(); BOOL SetAudioCaptureFormat(L_INT nIndex); CString m_strFileName; // Implementation protected: // Generated message map functions //{{AFX_MSG(CCaptureWaveDialog) virtual BOOL OnInitDialog(); afx_msg void OnDoCaptureWave(); afx_msg void OnBrowseoutputwavefile(); afx_msg void OnClose(); virtual void OnOK(); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: IltmmCapture* m_pCapture; L_BOOL m_bIsCapturing; }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif//NO_LEADTOOLS_MULTIMEDIA_SUPPORT #endif // !defined(AFX_CAPTUREWAVEDIALOG_H__2CE91F3A_FA74_494A_A7B4_EF7832B74D0C__INCLUDED_)