Last change
on this file since 334 was
334,
checked in by nicolape, 16 years ago
|
Sound is now working in Orxonox! Added a test background sound that plays when starting the game
|
File size:
533 bytes
|
Line | |
---|
1 | #ifndef __CLASS_AMBIENT_H__ |
---|
2 | #define __CLASS_AMBIENT_H__ |
---|
3 | |
---|
4 | #include <iostream> |
---|
5 | #include "../../include/AL/al.h" |
---|
6 | #include "../../include/AL/alc.h" |
---|
7 | #include "../../include/AL/alut.h" |
---|
8 | |
---|
9 | |
---|
10 | namespace audio |
---|
11 | { |
---|
12 | class Ambient |
---|
13 | { |
---|
14 | public: |
---|
15 | Ambient(); |
---|
16 | void play(); |
---|
17 | private: |
---|
18 | ALboolean LoadALData(); |
---|
19 | void SetListenerValues(); |
---|
20 | void KillALData(); |
---|
21 | |
---|
22 | ALuint Buffer; |
---|
23 | ALuint Source; |
---|
24 | ALfloat SourcePos[3]; |
---|
25 | ALfloat SourceVel[3]; |
---|
26 | ALfloat ListenerPos[3]; |
---|
27 | ALfloat ListenerVel[3]; |
---|
28 | ALfloat ListenerOri[6]; |
---|
29 | }; |
---|
30 | |
---|
31 | |
---|
32 | |
---|
33 | |
---|
34 | |
---|
35 | } |
---|
36 | |
---|
37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.