diff options
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2SoundPlayer.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/T2DLL/T2SoundPlayer.h b/src/T2DLL/T2SoundPlayer.h new file mode 100644 index 0000000..8d3d7c6 --- /dev/null +++ b/src/T2DLL/T2SoundPlayer.h @@ -0,0 +1,57 @@ +#pragma once +#include "common.h" + +enum PLAYMODE { + PlayMode_0 +}; + +enum SOUNDPRIORITY { + SoundPriority_0 +}; + +class T2SoundPlayer { +//protected: +// static const AFX_MSGMAP* __stdcall _GetBaseMessageMap(); +// virtual const AFX_MSGMAP* GetMessageMap() const; +public: + T2SoundPlayer(CWnd*, IDirectSound*); + virtual ~T2SoundPlayer(); + void AddSound(const CString&, SOUNDPRIORITY, const CString&); + void AddSound(const CString&, SOUNDPRIORITY, unsigned int, HINSTANCE); +private: + int LoadSound(T2SoundObjItem*, const CString&, CWave&, int); +public: + void DeleteSound(const CString&); + void DeleteSoundAll(); + void Play(const CString&, unsigned int, unsigned int, POINT*, PLAYMODE, int); + void Stop(const CString&); + void StopAll(); + void SetVolume(const CString&, int); + void SetSoundOn(int); + void FadeOut(); + void FadeIn(); + void PlayCDTrack(int, int); + void StopCD(); +protected: + long OnMCINotify(unsigned int, long); +// static const AFX_MSGMAP messageMap; +//private: +// static const AFX_MSGMAP_ENTRY* const _messageEntries; + +public: + unsigned int GetSEMask() const { return 0; } + void SetSEMask(unsigned int) {} + int IsSoundOn() const { return 0; } +}; + +class T2SoundObjItem { +public: + T2SoundObjItem(); + ~T2SoundObjItem(); +}; + +class T2SoundObjItemList { +public: + T2SoundObjItemList(); + virtual ~T2SoundObjItemList(); +}; |