]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Sound.hh
the massive refactoring effort
[chaz/yoink] / src / Moof / Sound.hh
diff --git a/src/Moof/Sound.hh b/src/Moof/Sound.hh
deleted file mode 100644 (file)
index bbfef12..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
-
-/*]  Copyright (c) 2009-2010, Charles McGarvey  [**************************
-**]  All rights reserved.
-*
-* vi:ts=4 sw=4 tw=75
-*
-* Distributable under the terms and conditions of the 2-clause BSD license;
-* see the file COPYING for a complete text of the license.
-*
-**************************************************************************/
-
-#ifndef _MOOF_SOUND_HH_
-#define _MOOF_SOUND_HH_
-
-/**
- * @file Sound.hh
- * Load and play sounds, current supports ogg vorbis.
- */
-
-#include <string>
-
-#include <boost/shared_ptr.hpp>
-
-#include <Moof/Math.hh>
-#include <Moof/Resource.hh>
-
-
-namespace Mf {
-
-
-class Sound;
-typedef boost::shared_ptr<Sound> SoundP;
-
-class SoundStream;
-typedef boost::shared_ptr<SoundStream> SoundStreamP;
-
-
-class Sound : public Resource
-{
-public:
-
-       static SoundP alloc(const std::string& name)
-       {
-               return SoundP(new Sound(name));
-       }
-
-       Sound();
-       explicit Sound(const std::string& name);
-
-       virtual ~Sound() {}
-
-       // this implicitly stops the sound if it is playing
-       void setSample(const std::string& name);
-
-       virtual void play();
-       void stop();
-       void pause();
-
-       void toggle();
-       bool isPlaying() const;
-
-       void setPosition(const Vector3& position);
-       void setVelocity(const Vector3& velocity);
-       void setGain(Scalar gain);
-       void setPitch(Scalar pitch);
-       void setLooping(bool looping);
-
-       static void setListenerPosition(const Vector3& position);
-       static void setListenerVelocity(const Vector3& velocity);
-       static void setListenerOrientation(const Vector3& forward,
-                                                                          const Vector3& up);
-
-       static bool getPath(std::string& name);
-
-protected:
-
-       class Impl;
-       boost::shared_ptr<Impl> mImpl;
-};
-
-
-class SoundStream : public Sound
-{
-public:
-
-       static SoundStreamP alloc(const std::string& name)
-       {
-               return SoundStreamP(new SoundStream(name));
-       }
-
-       SoundStream();
-       explicit SoundStream(const std::string& name) :
-               Sound(name) {}
-
-       void enqueue(const std::string& name);
-
-       void play();
-};
-
-
-} // namespace Mf
-
-#endif // _MOOF_SOUND_HH_
-
This page took 0.019056 seconds and 4 git commands to generate.