123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
-
-
- #ifndef _SOUND_AL_H_
- #define _SOUND_AL_H_
-
- #include <vector>
-
- #include "Sound.h"
-
-
- class SoundAL : public Sound {
- public:
-
-
-
- SoundAL();
-
-
-
- virtual ~SoundAL();
-
-
-
- virtual int initialize();
-
- virtual void setEnabled(bool on);
-
-
-
- virtual void setVolume(float vol);
-
-
-
- virtual int registeredSources();
-
-
-
- virtual void clear();
-
-
-
- virtual void listenAt(float pos[3], float angle[3]);
-
-
-
- virtual void sourceAt(int source, float pos[3]);
-
-
-
- virtual int addFile(const char *filename, int *source, unsigned int flags);
-
-
-
- virtual int addWave(unsigned char *wav, unsigned int length, int *source, unsigned int flags);
-
-
-
- virtual void play(int source);
-
-
-
- virtual void stop(int source);
-
- private:
-
- bool mEnabled;
- bool mInit;
- float mVolume;
- std::vector<unsigned int> mBuffer;
- std::vector<unsigned int> mSource;
- };
-
- #endif
|