home *** CD-ROM | disk | FTP | other *** search
/ Game Audio Programming / GameAudioProgramming.iso / Game_Audio / AudioTest / Sound2D.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-07-15  |  2.4 KB  |  91 lines

  1. /***********************************************************\
  2. Copyright (C) James Boer, 2002. 
  3. All rights reserved worldwide.
  4.  
  5. This software is provided "as is" without express or implied
  6. warranties. You may freely copy and compile this source into
  7. applications you distribute provided that the copyright text
  8. below is included in the resulting source code, for example:
  9. "Portions Copyright (C) James Boer, 2002"
  10. \***********************************************************/
  11. #if !defined(AFX_SOUND2D_H__FA65F78A_EC26_49C4_924E_BE17042AE5C6__INCLUDED_)
  12. #define AFX_SOUND2D_H__FA65F78A_EC26_49C4_924E_BE17042AE5C6__INCLUDED_
  13.  
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17. // Sound2D.h : header file
  18. //
  19.  
  20. class CAudioTestDlg;
  21.  
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CSound2D dialog
  24.  
  25. class CSound2D : public CPropertyPage
  26. {
  27.     DECLARE_DYNCREATE(CSound2D)
  28.  
  29. // Construction
  30. public:
  31.     CSound2D();
  32.     ~CSound2D();
  33.  
  34. // Dialog Data
  35.     //{{AFX_DATA(CSound2D)
  36.     enum { IDD = IDD_PROPPAGE_2DSOUND };
  37.     CSliderCtrl    m_Cursor;
  38.     CSliderCtrl    m_Pitch;
  39.     CSliderCtrl    m_Pan;
  40.     CSliderCtrl    m_Volume;
  41.     CButton    m_Pause;
  42.     CButton    m_Stop;
  43.     CButton    m_Play;
  44.     CListBox    m_2DSounds;
  45.     //}}AFX_DATA
  46.  
  47.  
  48. // Overrides
  49.     // ClassWizard generate virtual function overrides
  50.     //{{AFX_VIRTUAL(CSound2D)
  51.     protected:
  52.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  53.     //}}AFX_VIRTUAL
  54. public:
  55.     void UpdateControls();
  56.     void ClearList();
  57.     CAudioTestDlg*    m_pTestDlg;
  58. // Implementation
  59. protected:
  60.     // Generated message map functions
  61.     //{{AFX_MSG(CSound2D)
  62.     virtual BOOL OnInitDialog();
  63.     afx_msg void OnLoad2d();
  64.     afx_msg void OnUnload2d();
  65.     afx_msg void OnPlay();
  66.     afx_msg void OnPause();
  67.     afx_msg void OnStop();
  68.     afx_msg void On2dInitialze();
  69.     afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  70.     afx_msg void OnSelChangeList2dSounds();
  71.     afx_msg void On2dDelete();
  72.     afx_msg void OnTimer(UINT nIDEvent);
  73.     afx_msg void OnDestroy();
  74.     afx_msg void OnDblclkList2dsounds();
  75.     //}}AFX_MSG
  76.     DECLARE_MESSAGE_MAP()
  77.  
  78.     HICON m_hPlayIcon;
  79.     HICON m_hPauseIcon;
  80.     HICON m_hStopIcon;
  81.  
  82.     UINT m_nCursorTimer;
  83.  
  84.     bool m_bInit;
  85. };
  86.  
  87. //{{AFX_INSERT_LOCATION}}
  88. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  89.  
  90. #endif // !defined(AFX_SOUND2D_H__FA65F78A_EC26_49C4_924E_BE17042AE5C6__INCLUDED_)
  91.