Sound.h 314 B

1234567891011121314151617181920212223
  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. bool IsPlaying();
  13. private:
  14. unsigned int buffer_id;
  15. unsigned int source_id;
  16. bool is_looping;
  17. };