]> git.tdb.fi Git - libs/al.git/blob - source/listener.cpp
Fix a typo in the copyright notice
[libs/al.git] / source / listener.cpp
1 /* $Id$
2
3 This file is part of libmspal
4 Copyright © 2008 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #include "listener.h"
9
10 namespace Msp {
11 namespace AL {
12
13 void Listener::attribute(ALenum attr, float v)
14 {
15         alListenerf(attr, v);
16 }
17
18 void Listener::attribute(ALenum attr, float v0, float v1, float v2)
19 {
20         alListener3f(attr, v0, v1, v2);
21 }
22
23 void Listener::attribute(ALenum attr, const float *v)
24 {
25         alListenerfv(attr, v);
26 }
27
28 void Listener::set_position(float x, float y, float z)
29 {
30         attribute(AL_POSITION, x, y, z);
31 }
32
33 void Listener::set_gain(float g)
34 {
35         attribute(AL_GAIN, g);
36 }
37
38 } // namespace AL
39 } // namespace Msp