Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/audio/AudioManager.h @ 409

Last change on this file since 409 was 409, checked in by nicolape, 17 years ago

Simplified cmake audio lib messages

File size: 1.1 KB
Line 
1#ifndef AUDIOMANAGER_H_
2#define AUDIOMANAGER_H_
3
4#include "AudioIncludes.h"
5
6#include "AudioBuffer.h"
7#include "AudioSource.h"
8
9namespace audio
10{
11        class AudioManager
12        {
13        public:
14                // Init audio
15                AudioManager();
16                // Kill audio and set buffers, sources and memory free
17                ~AudioManager();
18                // Set listener position
19                void setPos(std::vector<float> newPosition);
20                // Set listener speed
21                void setSpeed(std::vector<float> newSpeed);
22                // Set listener orientation (first is direction
23                // the listener looks at, the second is the direction
24                // upwards the listener)
25                void setOri(std::vector<float> at, std::vector<float> up);
26                // Parses given xml string
27                void loadParams();
28        private:
29
30       
31                // Vector containing all audio files
32                std::vector<AudioBuffer> buffers;
33                // Vector containing all audio sources which referer to one buffer
34                std::vector<AudioSource> sources;
35                // The ambient background sound         
36                AudioSource ambient;
37               
38                std::vector<float> listenerPosition;
39                std::vector<float> listenerSpeed;
40                std::vector<float> listenerAt;
41                std::vector<float> listenerup;         
42        };     
43}
44
45#endif /*AUDIOMANAGER_H_*/
Note: See TracBrowser for help on using the repository browser.