summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2SoundPlayer.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
commit37e364b2c6cc7487a1c888d256a73e5337bb7189 (patch)
treeeaf6e857382eef16c2dd940eb4125536fbe068bd /src/T2DLL/T2SoundPlayer.h
downloadt2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.tar.gz
t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.zip
initial commit
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2SoundPlayer.h57
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();
+};