home *** CD-ROM | disk | FTP | other *** search
/ Game Audio Programming / GameAudioProgramming.iso / Game_Audio / AudioTest / Sound3D.h < prev    next >
C/C++ Source or Header  |  2002-07-15  |  3KB  |  99 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_SOUND3D_H__FF47D032_CFDC_4EA3_93FF_4FCF538C8D7E__INCLUDED_)
  12. #define AFX_SOUND3D_H__FF47D032_CFDC_4EA3_93FF_4FCF538C8D7E__INCLUDED_
  13.  
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif // _MSC_VER > 1000
  17. // Sound3D.h : header file
  18. //
  19. #include "Audio.h"
  20.  
  21. class CAudioTestDlg;
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CSound3D dialog
  25.  
  26. class CSound3D : public CPropertyPage
  27. {
  28.     DECLARE_DYNCREATE(CSound3D)
  29.  
  30. // Construction
  31. public:
  32.     CSound3D();
  33.     ~CSound3D();
  34.  
  35. // Dialog Data
  36.     //{{AFX_DATA(CSound3D)
  37.     enum { IDD = IDD_PROPPAGE_3DSOUND };
  38.     CSliderCtrl    m_ZPos;
  39.     CSliderCtrl    m_YPos;
  40.     CSliderCtrl    m_XPos;
  41.     CButton    m_Stop;
  42.     CButton    m_Pause;
  43.     CButton    m_Play;
  44.     CListBox    m_3DSounds;
  45.     CSliderCtrl    m_Cursor;
  46.     CSliderCtrl    m_Pitch;
  47.     CSliderCtrl    m_Volume;
  48.     //}}AFX_DATA
  49.  
  50.  
  51. // Overrides
  52.     // ClassWizard generate virtual function overrides
  53.     //{{AFX_VIRTUAL(CSound3D)
  54.     protected:
  55.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  56.     //}}AFX_VIRTUAL
  57.  
  58. public:
  59.     void UpdateControls();
  60.     void ClearList();
  61.     CAudioTestDlg*        m_pTestDlg;
  62.  
  63.     Audio::ISound3D*    GetCurrentSound();
  64. // Implementation
  65. protected:
  66.     // Generated message map functions
  67.     //{{AFX_MSG(CSound3D)
  68.     virtual BOOL OnInitDialog();
  69.     afx_msg void On3dInitialize();
  70.     afx_msg void On3dDelete();
  71.     afx_msg void OnLoad3d();
  72.     afx_msg void OnUnload3d();
  73.     afx_msg void OnPlay3d();
  74.     afx_msg void OnPause3d();
  75.     afx_msg void OnStop3d();
  76.     afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
  77.     afx_msg void OnTimer(UINT nIDEvent);
  78.     afx_msg void OnSelChangeList3dSounds();
  79.     afx_msg void OnDestroy();
  80.     afx_msg void OnBufferEAX();
  81.     afx_msg void OnZoomFx();
  82.     afx_msg void OnDblclkList3dsounds();
  83.     //}}AFX_MSG
  84.     DECLARE_MESSAGE_MAP()
  85.  
  86.     HICON m_hPlayIcon;
  87.     HICON m_hPauseIcon;
  88.     HICON m_hStopIcon;
  89.  
  90.     UINT m_nCursorTimer;
  91.  
  92.     bool m_bInit;
  93. };
  94.  
  95. //{{AFX_INSERT_LOCATION}}
  96. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  97.  
  98. #endif // !defined(AFX_SOUND3D_H__FF47D032_CFDC_4EA3_93FF_4FCF538C8D7E__INCLUDED_)
  99.