]> Dogcows Code - chaz/yoink/blobdiff - src/moof/sound.hh
testing new non-autotools build system
[chaz/yoink] / src / moof / sound.hh
index 5a60f0c1ecafffb143db1e9fef53f5704adc03b4..a0dd1033c1a1eb0f7979a62745537e12d8d36d08 100644 (file)
@@ -29,28 +29,22 @@ namespace moof {
 
 
 class sound;
-typedef boost::shared_ptr<sound> sound_ptr;
-
+typedef resource_handle<sound> sound_handle;
 class sound_stream;
-typedef boost::shared_ptr<sound_stream> sound_stream_ptr;
+typedef resource_handle<sound_stream> sound_stream_handle;
 
 
 class sound : public resource
 {
 public:
 
-       static sound_ptr alloc(const std::string& name)
-       {
-               return sound_ptr(new sound(name));
-       }
-
-       sound();
-       explicit sound(const std::string& name);
+       //sound();
+       explicit sound(const std::string& path);
 
        virtual ~sound() {}
 
        // this implicitly stops the sound if it is playing
-       void sample(const std::string& name);
+       void sample(const std::string& path);
 
        virtual void play();
        void stop();
@@ -70,8 +64,6 @@ public:
        static void listener_orientation(const vector3& forward,
                                                                         const vector3& up);
 
-       static bool find_path(std::string& name);
-
 protected:
 
        class impl;
@@ -83,16 +75,11 @@ class sound_stream : public sound
 {
 public:
 
-       static sound_stream_ptr alloc(const std::string& name)
-       {
-               return sound_stream_ptr(new sound_stream(name));
-       }
-
-       sound_stream();
-       explicit sound_stream(const std::string& name) :
-               sound(name) {}
+       //sound_stream();
+       explicit sound_stream(const std::string& path) :
+               sound(path) {}
 
-       void enqueue(const std::string& name);
+       void enqueue(const std::string& path);
 
        void play();
 };
This page took 0.020733 seconds and 4 git commands to generate.