X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsound.h;fp=source%2Fsound.h;h=a97de4623f9704bcdf0003733c683ea6b2edb915;hb=97dae493948466867b9f661f45e451711dd6b41b;hp=1badf3c03a9d01ff03f211daf539579278faec3b;hpb=58dc1e7c15f928d0f861a20c46f2be4112bf5baf;p=libs%2Fal.git diff --git a/source/sound.h b/source/sound.h index 1badf3c..a97de46 100644 --- a/source/sound.h +++ b/source/sound.h @@ -28,12 +28,13 @@ private: public: Sound(); - Sound(const std::string &); ~Sound(); - void open(const std::string &); + void open_file(const std::string &); + void open_memory(const void *, unsigned); void load_data(); - void load(const std::string &); + void load_file(const std::string &); + void load_memory(const void *, unsigned); void close(); void rewind(); unsigned read(char *, unsigned); @@ -43,6 +44,8 @@ public: unsigned get_frequency() const { return freq; } unsigned get_size() const { return size; } const char *get_data() const; +private: + void open_common(); }; } // namespace AL