]> git.tdb.fi Git - libs/al.git/blobdiff - source/buffer.h
Initial revision
[libs/al.git] / source / buffer.h
diff --git a/source/buffer.h b/source/buffer.h
new file mode 100644 (file)
index 0000000..00d1add
--- /dev/null
@@ -0,0 +1,36 @@
+/* $Id$
+
+This file is part of libmspal
+Copyright © 2008 Mikko Rasa, Mikkosoft Productions
+Diestributed under the LGPL
+*/
+
+#ifndef MSP_AL_BUFFER_H_
+#define MSP_AL_BUFFER_H_
+
+#include <string>
+#include <AL/al.h>
+#include "format.h"
+#include "types.h"
+
+namespace Msp {
+namespace AL {
+
+class Buffer
+{
+private:
+       uint id;
+
+public:
+       Buffer();
+       ~Buffer();
+
+       uint get_id() const { return id; }
+       void data(Format, const void *, sizei, sizei);
+       void load_data(const std::string &);
+};
+
+} // namespace AL
+} // namespace Msp
+
+#endif