SoundSystem.h 433 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <vector>
  3. #include <al.h>
  4. #include <alc.h>
  5. #include "vector.h"
  6. #include "Sound.h"
  7. class SoundSystem
  8. {
  9. public:
  10. SoundSystem();
  11. ~SoundSystem();
  12. void SetListener(const Vec3f& inPos, const Vec3f& inVel, const Vec3f& inOri);
  13. unsigned int LoadSound(const char* inWavPath, bool inLooping);
  14. Sound* GetSound(unsigned int inID);
  15. private:
  16. ALCdevice* device;
  17. ALCcontext* context;
  18. std::vector<Sound*> sounds;
  19. };