]> git.tdb.fi Git - libs/al.git/blobdiff - source/source.h
Initial revision
[libs/al.git] / source / source.h
diff --git a/source/source.h b/source/source.h
new file mode 100644 (file)
index 0000000..234dcb8
--- /dev/null
@@ -0,0 +1,40 @@
+/* $Id$
+
+This file is part of libmspal
+Copyright © 2008 Mikko Rasa, Mikkosoft Productions
+Diestributed under the LGPL
+*/
+
+#ifndef MSP_AL_SOURCE_H_
+#define MSP_AL_SOURCE_H_
+
+#include <vector>
+#include <AL/al.h>
+
+namespace Msp {
+namespace AL {
+
+class Buffer;
+
+class Source
+{
+private:
+       uint id;
+
+public:
+       Source();
+       ~Source();
+
+       void attribute(ALenum, int);
+       void attribute(ALenum, float);
+       void attribute(ALenum, float, float, float);
+       void attribute(ALenum, const float *);
+       void set_buffer(Buffer &);
+       void queue_buffers(const std::vector<Buffer *> &);
+       void queue_buffer(Buffer &);
+};
+
+} // namespace AL
+} // namespace Msp
+
+#endif