]> Dogcows Code - chaz/yoink/blobdiff - src/moof/sound.hh
testing improved runloop scheduling
[chaz/yoink] / src / moof / sound.hh
index e9d4bcf4f12820a8bd09cceb3f62f9bbefd74d16..d4c1bcdc9db5253ec849fec3fc2e58a1cd39a4fb 100644 (file)
@@ -27,6 +27,9 @@
 namespace moof {
 
 
+class script;
+
+
 class sound
 {
 public:
@@ -35,17 +38,17 @@ public:
        explicit sound(const std::string& name);
 
        void sample(const std::string& name);
-       void enqueue(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.017836 seconds and 4 git commands to generate.