]> git.tdb.fi Git - libs/al.git/blobdiff - source/buffer.h
Two more atribute setting functions in Source
[libs/al.git] / source / buffer.h
index f7ac307da7b644ff8f79eec80f81b90d02e2fce5..3680e5411ac3f7dd900846a652dc00b0fcfc1fbc 100644 (file)
@@ -10,14 +10,29 @@ Distributed under the LGPL
 
 #include <string>
 #include <AL/al.h>
+#include <msp/datafile/loader.h>
 #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 &);
 };