You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
821 B

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2011 Sam Hocevar <sam@hocevar.net>
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the Do What The Fuck You Want To
  7. // Public License, Version 2, as published by Sam Hocevar. See
  8. // http://www.wtfpl.net/ for more details.
  9. //
  10. //
  11. // The Sampler class
  12. // -----------------
  13. // The Sampler is a static class that manages samples.
  14. //
  15. #if !defined __LOL_SAMPLER_H__
  16. #define __LOL_SAMPLER_H__
  17. #include <stdint.h>
  18. namespace lol
  19. {
  20. class Sampler
  21. {
  22. public:
  23. static int Register(char const *path);
  24. static void Deregister(int id);
  25. static void PlaySample(int id);
  26. static void LoopSample(int id);
  27. static void StopSample(int id);
  28. private:
  29. Sampler() {}
  30. };
  31. } /* namespace lol */
  32. #endif // __LOL_SAMPLER_H__