Sound.h 333 B

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