Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

40 rindas
748 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. #pragma once
  11. //
  12. // The Sampler class
  13. // -----------------
  14. // The Sampler is a static class that manages samples.
  15. //
  16. #include <stdint.h>
  17. namespace lol
  18. {
  19. class Sampler
  20. {
  21. public:
  22. static int Register(char const *path);
  23. static void Deregister(int id);
  24. static void PlaySample(int id);
  25. static void LoopSample(int id);
  26. static void StopSample(int id);
  27. private:
  28. Sampler() {}
  29. };
  30. } /* namespace lol */