diff options
Diffstat (limited to 'osframework/source/SexyAppFramework/FModSoundInstance.cpp')
-rw-r--r-- | osframework/source/SexyAppFramework/FModSoundInstance.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/osframework/source/SexyAppFramework/FModSoundInstance.cpp b/osframework/source/SexyAppFramework/FModSoundInstance.cpp new file mode 100644 index 0000000..41fc9bb --- /dev/null +++ b/osframework/source/SexyAppFramework/FModSoundInstance.cpp @@ -0,0 +1,50 @@ +#include "FModSoundInstance.h"
+#include "FModLoader.h"
+
+using namespace Sexy;
+
+FModSoundInstance::FModSoundInstance()
+{
+ mStream = NULL;
+ mChannelNum = 0;
+}
+
+FModSoundInstance::~FModSoundInstance()
+{
+ Release();
+}
+
+void FModSoundInstance::Release()
+{
+}
+
+void FModSoundInstance::SetVolume(double theVolume)
+{
+}
+
+void FModSoundInstance::SetPan(int thePosition)
+{
+}
+
+bool FModSoundInstance::Play(bool looping, bool autoRelease)
+{
+ if (mStream == NULL)
+ return false;
+
+ gFMod->FSOUND_Stream_Play(FSOUND_FREE, mStream);
+ return true;
+}
+
+void FModSoundInstance::Stop()
+{
+}
+
+bool FModSoundInstance::IsPlaying()
+{
+ return true;
+}
+
+bool FModSoundInstance::IsReleased()
+{
+ return false;
+}
|