X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuffer.h;h=3680e5411ac3f7dd900846a652dc00b0fcfc1fbc;hb=97dae493948466867b9f661f45e451711dd6b41b;hp=f7ac307da7b644ff8f79eec80f81b90d02e2fce5;hpb=8e69eba7dc53233c169152bdf654f032fcd0629f;p=libs%2Fal.git diff --git a/source/buffer.h b/source/buffer.h index f7ac307..3680e54 100644 --- a/source/buffer.h +++ b/source/buffer.h @@ -10,14 +10,29 @@ Distributed under the LGPL #include #include +#include #include "format.h" #include "types.h" namespace Msp { namespace AL { +class Sound; + class Buffer { +public: + class Loader: public DataFile::Loader + { + private: + Buffer &buf; + + public: + Loader(Buffer &); + private: + void sound_data(const std::string &); + }; + private: uint id; @@ -27,6 +42,7 @@ public: uint get_id() const { return id; } void data(Format, const void *, sizei, sizei); + void data(const Sound &); void load_data(const std::string &); };