Player.h 712 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef Player_H
  2. #define Player_H
  3. #ifdef WIN32
  4. #include <io.h>
  5. #include <stdio.h>
  6. #include <windows.h>
  7. #include <windowsx.h>
  8. #include <mmsystem.h>
  9. #include <Array.h>
  10. #include "Sound.h"
  11. #pragma comment( lib, "winmm.lib" )
  12. #else
  13. #include <Array.h>
  14. #include "Sound.h"
  15. #endif
  16. using namespace Framework;
  17. namespace GSL
  18. {
  19. class GSLPlayer
  20. {
  21. private:
  22. RCArray< GSLSound > sounds;
  23. CRITICAL_SECTION cs;
  24. public:
  25. // Konstruktor
  26. GSLPlayer();
  27. // Destruktor
  28. ~GSLPlayer();
  29. // nicht constant
  30. bool addSound( GSLSound *snd );
  31. void removeSound( GSLSound *zSnd );
  32. #ifdef WIN32
  33. void sendSoundMSG( HWAVEOUT hOut, UINT uMsg, DWORD_PTR dwInstance, DWORD_PTR dwParam1, DWORD_PTR dwParam2 );
  34. #endif
  35. };
  36. }
  37. #endif