Don't udpate LastOverSpeedTick when using aqua_speed
[ryzomcore.git] / nel / tools / sound / source_sounds_builder / SoundPage.h
blobf18e8e9ae4cce6a4a8b5c71de0bede6f977d4116
1 #if !defined(AFX_SOUNDPAGE_H__930378AF_E242_40AD_BF1F_882AAED43945__INCLUDED_)
2 #define AFX_SOUNDPAGE_H__930378AF_E242_40AD_BF1F_882AAED43945__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
8 #include "../src/sound/sound.h"
9 #include "nel/sound/u_audio_mixer.h"
10 using namespace NLSOUND;
12 #include <string>
15 // SoundPage.h : header file
18 /////////////////////////////////////////////////////////////////////////////
19 // CSoundPage dialog
21 class CSoundPage : public CDialog
23 // Construction
24 public:
25 CSoundPage(CWnd* pParent = NULL); // standard constructor
27 // Dialog Data
28 //{{AFX_DATA(CSoundPage)
29 enum { IDD = IDD_SoundPage };
30 CComboBox m_Priority;
31 CString m_Filename;
32 float m_Gain;
33 BOOL m_Pos3D;
34 float m_MinDist;
35 float m_MaxDist;
36 UINT m_InnerAngleDeg;
37 UINT m_OuterAngleDeg;
38 float m_OuterGain;
39 BOOL m_Looped;
40 CString m_Stereo;
41 float m_Pitch;
42 BOOL m_Looping;
43 CString m_SoundName;
44 //}}AFX_DATA
47 // Overrides
48 // ClassWizard generated virtual function overrides
49 //{{AFX_VIRTUAL(CSoundPage)
50 public:
51 virtual BOOL DestroyWindow();
52 protected:
53 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
54 //}}AFX_VIRTUAL
56 public:
57 void setTree( CTreeCtrl *tree ) { _Tree = tree; }
58 void setCurrentSound( CSound *sound, HTREEITEM hitem );
59 void getPropertiesFromSound();
60 void removeSound();
61 void apply();
62 void cancel();
63 bool loadSound();
64 void rename( CString s );
66 // Implementation
67 protected:
69 // Generated message map functions
70 //{{AFX_MSG(CSoundPage)
71 afx_msg void OnPos3D();
72 afx_msg void OnChooseFile();
73 afx_msg void OnCancel();
74 afx_msg void OnRemove();
75 afx_msg void OnPlaySound();
76 afx_msg void OnClose();
77 afx_msg void OnLooped();
78 virtual BOOL OnInitDialog();
79 afx_msg void OnChangeEditInnerAngle();
80 afx_msg void OnChangeEditOuterAngle();
81 afx_msg void OnPaint();
82 afx_msg void OnChangeEditOuterGain();
83 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
84 afx_msg void OnChangeEditMinDist();
85 afx_msg void OnChangeEditMaxDist();
86 afx_msg void OnButtonHelp();
87 afx_msg void OnChangeEditGain();
88 afx_msg void OnButtonTestOuterGain();
89 afx_msg void OnChangeEditPitch();
90 afx_msg void OnHome();
91 //}}AFX_MSG
92 DECLARE_MESSAGE_MAP()
94 CSound *_CurrentSound;
95 CTreeCtrl *_Tree;
96 HTREEITEM _HItem;
97 UAudioMixer *_AudioMixer;
98 USource *_Source;
99 CFont *_NameFont;
101 void UpdateCurrentSound();
102 void UpdateStereo();
103 void DrawCones();
104 void Play( bool ousidecone );
108 //{{AFX_INSERT_LOCATION}}
109 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
111 #endif // !defined(AFX_SOUNDPAGE_H__930378AF_E242_40AD_BF1F_882AAED43945__INCLUDED_)