]> git.tdb.fi Git - libs/al.git/blob - source/source.h
234dcb832f4a2d8e9b4ca0bf66af3e87ea3bbf37
[libs/al.git] / source / source.h
1 /* $Id$
2
3 This file is part of libmspal
4 Copyright © 2008 Mikko Rasa, Mikkosoft Productions
5 Diestributed under the LGPL
6 */
7
8 #ifndef MSP_AL_SOURCE_H_
9 #define MSP_AL_SOURCE_H_
10
11 #include <vector>
12 #include <AL/al.h>
13
14 namespace Msp {
15 namespace AL {
16
17 class Buffer;
18
19 class Source
20 {
21 private:
22         uint id;
23
24 public:
25         Source();
26         ~Source();
27
28         void attribute(ALenum, int);
29         void attribute(ALenum, float);
30         void attribute(ALenum, float, float, float);
31         void attribute(ALenum, const float *);
32         void set_buffer(Buffer &);
33         void queue_buffers(const std::vector<Buffer *> &);
34         void queue_buffer(Buffer &);
35 };
36
37 } // namespace AL
38 } // namespace Msp
39
40 #endif