]> git.tdb.fi Git - libs/al.git/blob - source/listener.cpp
Drop copyright notices and Id tags from source files
[libs/al.git] / source / listener.cpp
1 #include "listener.h"
2
3 namespace Msp {
4 namespace AL {
5
6 void Listener::attribute(ALenum attr, float v)
7 {
8         alListenerf(attr, v);
9 }
10
11 void Listener::attribute(ALenum attr, float v0, float v1, float v2)
12 {
13         alListener3f(attr, v0, v1, v2);
14 }
15
16 void Listener::attribute(ALenum attr, const float *v)
17 {
18         alListenerfv(attr, v);
19 }
20
21 void Listener::set_position(float x, float y, float z)
22 {
23         attribute(AL_POSITION, x, y, z);
24 }
25
26 void Listener::set_gain(float g)
27 {
28         attribute(AL_GAIN, g);
29 }
30
31 } // namespace AL
32 } // namespace Msp