#ifndef AUDIOMANAGER_H_ #define AUDIOMANAGER_H_ #include "AudioIncludes.h" #include "AudioBuffer.h" #include "AudioSource.h" #include "AudioStream.h" namespace audio { class AudioManager { public: // Init audio AudioManager(); // Kill audio and set buffers, sources and memory free ~AudioManager(); // Set listener position void setPos(std::vector newPosition); // Set listener speed void setSpeed(std::vector newSpeed); // Set listener orientation (first is direction // the listener looks at, the second is the direction // upwards the listener) void setOri(std::vector at, std::vector up); // Parses given xml string void loadParams(); // Update void update(); void ambientAdd(std::string file); void ambientStart(); void ambientStop(); private: // Background sound std::vector bgSounds; int currentBgSound; std::string ambientPath; // Vector containing all audio files std::vector buffers; // Vector containing all audio sources which referer to one buffer std::vector sources; // The ambient background sound AudioSource ambient; std::vector listenerPosition; std::vector listenerSpeed; std::vector listenerAt; std::vector listenerup; }; } #endif /*AUDIOMANAGER_H_*/