/*! * \file include/system/Sound.h * \brief Sound Interface * * \author xythobuz */ #ifndef _SOUND_H_ #define _SOUND_H_ #include class Sound { public: static int initialize(); static void shutdown(); static void clear(); static int numBuffers(); static int loadBuffer(unsigned char* buffer, unsigned int length); static int numSources(bool atListener = false); static int addSource(int buffer, float volume = 1.0f, bool atListener = false, bool loop = false); static int sourceAt(int source, glm::vec3 pos); static void listenAt(glm::vec3 pos, glm::vec3 at, glm::vec3 up); static void play(int source, bool atListener = false); static void stop(int source); static void stopAll(); static void setEnabled(bool on = true); static bool getEnabled(); static void setVolume(float vol = 1.0f); static float getVolume(); static std::string getVersion(bool linked); }; #endif