Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

38 rader
697 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 Audio interface
  13. // -------------------
  14. // Helper functions to set up the audio device.
  15. //
  16. #include <stdint.h>
  17. namespace lol
  18. {
  19. class Audio
  20. {
  21. public:
  22. static void Setup(int channels);
  23. static void SetVolume(int channel,int volume);
  24. static void MuteAll();
  25. static void UnmuteAll();
  26. private:
  27. Audio() {}
  28. };
  29. } /* namespace lol */