mirror of https://github.com/tongzx/nt5src
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
2.1 KiB
60 lines
2.1 KiB
// DirectSoundFXWavesReverbPage.h : Declaration of the CDirectSoundFXWavesReverbPage
|
|
|
|
#ifndef __DIRECTSOUNDFXWAVESREVERBPAGE_H_
|
|
#define __DIRECTSOUNDFXWAVESREVERBPAGE_H_
|
|
|
|
#include "resource.h" // main symbols
|
|
#include <dsound.h>
|
|
#include "ControlHelp.h"
|
|
|
|
EXTERN_C const CLSID CLSID_DirectSoundFXWavesReverbPage;
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDirectSoundFXWavesReverbPage
|
|
class ATL_NO_VTABLE CDirectSoundFXWavesReverbPage :
|
|
public CComObjectRootEx<CComSingleThreadModel>,
|
|
public CComCoClass<CDirectSoundFXWavesReverbPage, &CLSID_DirectSoundFXWavesReverbPage>,
|
|
public IPropertyPageImpl<CDirectSoundFXWavesReverbPage>,
|
|
public CDialogImpl<CDirectSoundFXWavesReverbPage>
|
|
{
|
|
public:
|
|
CDirectSoundFXWavesReverbPage();
|
|
|
|
enum {IDD = IDD_DIRECTSOUNDFXWAVESREVERBPAGE};
|
|
|
|
DECLARE_REGISTRY_RESOURCEID(IDR_DIRECTSOUNDFXWAVESREVERBPAGE)
|
|
|
|
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
|
|
|
BEGIN_COM_MAP(CDirectSoundFXWavesReverbPage)
|
|
COM_INTERFACE_ENTRY(IPropertyPage)
|
|
END_COM_MAP()
|
|
|
|
BEGIN_MSG_MAP(CDirectSoundFXWavesReverbPage)
|
|
MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog);
|
|
MESSAGE_HANDLER(WM_HSCROLL, OnControlMessage);
|
|
MESSAGE_HANDLER(WM_COMMAND, OnControlMessage);
|
|
CHAIN_MSG_MAP(IPropertyPageImpl<CDirectSoundFXWavesReverbPage>)
|
|
END_MSG_MAP()
|
|
// Handler prototypes:
|
|
// LRESULT MessageHandler(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
|
|
// LRESULT CommandHandler(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
|
|
// LRESULT NotifyHandler(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);
|
|
|
|
STDMETHOD(SetObjects)(ULONG nObjects, IUnknown **ppUnk);
|
|
STDMETHOD(Apply)(void);
|
|
|
|
// Message handlers
|
|
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
|
|
LRESULT OnControlMessage(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
|
|
|
|
// Member variables
|
|
CComPtr<IDirectSoundFXWavesReverb> m_IDSFXWavesReverb;
|
|
CSliderValue m_sliderInGain;
|
|
CSliderValue m_sliderReverbMix;
|
|
CSliderValue m_sliderReverbTime;
|
|
CSliderValue m_sliderHighFreqRTRatio;
|
|
Handler *m_rgpHandlers[5];
|
|
};
|
|
|
|
#endif //__DIRECTSOUNDFXWAVESREVERBPAGE_H_
|