00001
00002 #ifndef IAUDIOMANAGER_H
00003 #define IAUDIOMANAGER_H
00004 #include <string>
00005 #include "IAudio.h"
00006 namespace cAudio
00007 {
00008 class IAudio;
00009 class IAudioManager
00010 {
00011 public:
00012 virtual void init(int argc,char* argv[]) = 0;
00013 virtual void shutDown() = 0;
00014 virtual void create(const std::string& identifier,const std::string& file,bool stream = false) = 0;
00015 virtual void setListenerPos(float x,float y,float z) = 0;
00016 virtual void update() = 0;
00017 virtual IAudio *getSound(std::string identifier) = 0;
00018 virtual void release() = 0;
00019 virtual ~IAudioManager() {}
00020 protected:
00021 private:
00022 };
00023
00024 extern "C" IAudioManager* getAudioManager(void);
00025 }
00026 #endif // IAUDIOMANAGER_H