3 This file is part of libmspal
4 Copyright © 2008 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_AL_SOURCE_H_
9 #define MSP_AL_SOURCE_H_
29 Represents an audio source in the 3D environment.
40 void attribute(ALenum, int);
41 void attribute(ALenum, float);
42 void attribute(ALenum, float, float, float);
43 void attribute(ALenum, const float *);
44 void get_attribute(ALenum, int *) const;
45 void get_attribute(ALenum, float *) const;
47 SourceState get_state() const;
48 void set_position(float, float, float);
51 void set_rolloff_factor(float);
52 void set_buffer(const Buffer &);
53 void queue_buffers(const std::vector<const Buffer *> &);
54 void queue_buffer(const Buffer &);
55 void unqueue_buffers(const std::vector<const Buffer *> &);
56 void unqueue_buffer(const Buffer &);
58 unsigned get_buffers_queued() const;
59 unsigned get_buffers_processed() const;
61 void set_looping(bool);