Player.h 726 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. #include <Critical.h>
  12. #pragma comment( lib, "winmm.lib" )
  13. #else
  14. #include <Array.h>
  15. #include "Sound.h"
  16. #endif
  17. using namespace Framework;
  18. namespace GSL
  19. {
  20. class GSLPlayer
  21. {
  22. private:
  23. RCArray< GSLSound > sounds;
  24. Critical cs;
  25. public:
  26. // Konstruktor
  27. GSLPlayer();
  28. // Destruktor
  29. ~GSLPlayer();
  30. // nicht constant
  31. bool addSound( GSLSound *snd );
  32. void removeSound( GSLSound *zSnd );
  33. #ifdef WIN32
  34. void sendSoundMSG( HWAVEOUT hOut, UINT uMsg, DWORD_PTR dwInstance, DWORD_PTR dwParam1, DWORD_PTR dwParam2 );
  35. #endif
  36. };
  37. }
  38. #endif