mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-30 21:00:53 +00:00
112 lines
2.7 KiB
C
112 lines
2.7 KiB
C
|
#if !defined(AFX_SOUNDPAGE_H__930378AF_E242_40AD_BF1F_882AAED43945__INCLUDED_)
|
||
|
#define AFX_SOUNDPAGE_H__930378AF_E242_40AD_BF1F_882AAED43945__INCLUDED_
|
||
|
|
||
|
#if _MSC_VER > 1000
|
||
|
#pragma once
|
||
|
#endif // _MSC_VER > 1000
|
||
|
|
||
|
#include "../src/sound/sound.h"
|
||
|
#include "nel/sound/u_audio_mixer.h"
|
||
|
using namespace NLSOUND;
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
|
||
|
// SoundPage.h : header file
|
||
|
//
|
||
|
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
// CSoundPage dialog
|
||
|
|
||
|
class CSoundPage : public CDialog
|
||
|
{
|
||
|
// Construction
|
||
|
public:
|
||
|
CSoundPage(CWnd* pParent = NULL); // standard constructor
|
||
|
|
||
|
// Dialog Data
|
||
|
//{{AFX_DATA(CSoundPage)
|
||
|
enum { IDD = IDD_SoundPage };
|
||
|
CComboBox m_Priority;
|
||
|
CString m_Filename;
|
||
|
float m_Gain;
|
||
|
BOOL m_Pos3D;
|
||
|
float m_MinDist;
|
||
|
float m_MaxDist;
|
||
|
UINT m_InnerAngleDeg;
|
||
|
UINT m_OuterAngleDeg;
|
||
|
float m_OuterGain;
|
||
|
BOOL m_Looped;
|
||
|
CString m_Stereo;
|
||
|
float m_Pitch;
|
||
|
BOOL m_Looping;
|
||
|
CString m_SoundName;
|
||
|
//}}AFX_DATA
|
||
|
|
||
|
|
||
|
// Overrides
|
||
|
// ClassWizard generated virtual function overrides
|
||
|
//{{AFX_VIRTUAL(CSoundPage)
|
||
|
public:
|
||
|
virtual BOOL DestroyWindow();
|
||
|
protected:
|
||
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||
|
//}}AFX_VIRTUAL
|
||
|
|
||
|
public:
|
||
|
void setTree( CTreeCtrl *tree ) { _Tree = tree; }
|
||
|
void setCurrentSound( CSound *sound, HTREEITEM hitem );
|
||
|
void getPropertiesFromSound();
|
||
|
void removeSound();
|
||
|
void apply();
|
||
|
void cancel();
|
||
|
bool loadSound();
|
||
|
void rename( CString s );
|
||
|
|
||
|
// Implementation
|
||
|
protected:
|
||
|
|
||
|
// Generated message map functions
|
||
|
//{{AFX_MSG(CSoundPage)
|
||
|
afx_msg void OnPos3D();
|
||
|
afx_msg void OnChooseFile();
|
||
|
afx_msg void OnCancel();
|
||
|
afx_msg void OnRemove();
|
||
|
afx_msg void OnPlaySound();
|
||
|
afx_msg void OnClose();
|
||
|
afx_msg void OnLooped();
|
||
|
virtual BOOL OnInitDialog();
|
||
|
afx_msg void OnChangeEditInnerAngle();
|
||
|
afx_msg void OnChangeEditOuterAngle();
|
||
|
afx_msg void OnPaint();
|
||
|
afx_msg void OnChangeEditOuterGain();
|
||
|
afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
|
||
|
afx_msg void OnChangeEditMinDist();
|
||
|
afx_msg void OnChangeEditMaxDist();
|
||
|
afx_msg void OnButtonHelp();
|
||
|
afx_msg void OnChangeEditGain();
|
||
|
afx_msg void OnButtonTestOuterGain();
|
||
|
afx_msg void OnChangeEditPitch();
|
||
|
afx_msg void OnHome();
|
||
|
//}}AFX_MSG
|
||
|
DECLARE_MESSAGE_MAP()
|
||
|
|
||
|
CSound *_CurrentSound;
|
||
|
CTreeCtrl *_Tree;
|
||
|
HTREEITEM _HItem;
|
||
|
UAudioMixer *_AudioMixer;
|
||
|
USource *_Source;
|
||
|
CFont *_NameFont;
|
||
|
|
||
|
void UpdateCurrentSound();
|
||
|
void UpdateStereo();
|
||
|
void DrawCones();
|
||
|
void Play( bool ousidecone );
|
||
|
|
||
|
};
|
||
|
|
||
|
//{{AFX_INSERT_LOCATION}}
|
||
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||
|
|
||
|
#endif // !defined(AFX_SOUNDPAGE_H__930378AF_E242_40AD_BF1F_882AAED43945__INCLUDED_)
|