#ifndef _AudioManager_H__ #define _AudioManager_H__ #include "AudioIncludes.h" #include "core/Tickable.h" #include "AudioPrereqs.h" #include "AudioBuffer.h" #include "AudioSource.h" #include "AudioStream.h" namespace audio { class _AudioExport AudioManager : public orxonox::Tickable { 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 tick(float dt); 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__ */