]> Dogcows Code - chaz/yoink/blobdiff - src/moof/sound.hh
testing improved runloop scheduling
[chaz/yoink] / src / moof / sound.hh
index 7fdfd0948b49c68fea6600660567eb3c08af8807..d4c1bcdc9db5253ec849fec3fc2e58a1cd39a4fb 100644 (file)
 namespace moof {
 
 
+class script;
+
+
 class sound
 {
 public:
 
        sound();
-       explicit sound(const std::string& path);
+       explicit sound(const std::string& name);
 
-       void sample(const std::string& path);
-       void enqueue(const std::string& path);
+       void sample(const std::string& name);
+       void queue(const std::string& name);
 
        void play();
-       void stream();
        void stop();
        void pause();
-       void rewind();
 
        void toggle();
        bool is_playing() const;
 
+       void buffer_size(scalar seconds);
+
        void position(const vector3& position);
        void velocity(const vector3& velocity);
        void gain(scalar gain);
@@ -58,6 +61,7 @@ public:
        static void listener_orientation(const vector3& forward,
                                                                         const vector3& up);
 
+       static void import(script& script, const std::string& nspace = "");
 
 private:
 
This page took 0.018763 seconds and 4 git commands to generate.