Sound.h 295 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "Vector.h"
  3. class Sound
  4. {
  5. public:
  6. Sound(const char* inWavPath, bool inLooping);
  7. ~Sound();
  8. void SetPos(const Vec3f& inPos, const Vec3f& inVel);
  9. void Play();
  10. void Pause();
  11. void Stop();
  12. private:
  13. unsigned int buffer_id;
  14. unsigned int source_id;
  15. bool is_looping;
  16. };