12345678910111213141516171819202122232425262728293031323334353637 |
- /*!
- * \file include/system/Sound.h
- * \brief This is the audio manager Header
- *
- * \author xythobuz
- */
-
- #ifndef _SOUND_H_
- #define _SOUND_H_
-
- 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, float pos[3]);
- static void listenAt(float pos[3], float orientation[6]);
-
- static void play(int source, bool atListener = false);
- static void stopAll();
-
- static void setEnabled(bool on = true);
- static bool getEnabled();
-
- static void setVolume(float vol = 1.0f);
- static float getVolume();
- };
-
- #endif
|