X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fsound.hh;h=d4c1bcdc9db5253ec849fec3fc2e58a1cd39a4fb;hp=e9d4bcf4f12820a8bd09cceb3f62f9bbefd74d16;hb=e9a16d767785b1a903a4466ff26265a5f7dae9e5;hpb=ed04ddaaa59dcc42e375ec492dbda77f693530e9 diff --git a/src/moof/sound.hh b/src/moof/sound.hh index e9d4bcf..d4c1bcd 100644 --- a/src/moof/sound.hh +++ b/src/moof/sound.hh @@ -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: