diff options
Diffstat (limited to 'osframework/source/SexyAppFramework/FModSoundManager.h')
-rw-r--r-- | osframework/source/SexyAppFramework/FModSoundManager.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/osframework/source/SexyAppFramework/FModSoundManager.h b/osframework/source/SexyAppFramework/FModSoundManager.h new file mode 100644 index 0000000..8609475 --- /dev/null +++ b/osframework/source/SexyAppFramework/FModSoundManager.h @@ -0,0 +1,41 @@ +#ifndef __FMODSOUNDMANAGER_H__
+#define __FMODSOUNDMANAGER_H__
+
+#include "SoundManager.h"
+#include "FModSoundInstance.h"
+#include "fmod.h"
+
+namespace Sexy
+{
+
+class FModSoundManager : public SoundManager
+{
+public:
+ double mMasterVolume;
+ FSOUND_STREAM* mSourceStreams[MAX_SOURCE_SOUNDS];
+
+public:
+ FModSoundManager(HWND theWindow);
+ virtual ~FModSoundManager();
+
+ virtual bool Initialized();
+
+ virtual bool LoadSound(unsigned int theSfxID, const std::string& theFilename);
+ virtual bool LoadSound(const std::string& theFilename);
+ virtual void SetVolume(double theVolume);
+
+ virtual SoundInstance* GetSoundInstance(unsigned int theSfxID);
+
+ virtual void ReleaseSounds();
+ virtual void ReleaseChannels();
+
+ virtual double GetMasterVolume();
+ virtual void SetMasterVolume(double theVolume);
+
+ virtual void Flush();
+ virtual void SetCooperativeWindow(HWND theHWnd, bool isWindowed);
+};
+
+}
+
+#endif //__FMODSOUNDMANAGER_H__
\ No newline at end of file |