GSLSoundV.h 857 B

1234567891011121314151617181920212223242526272829
  1. #pragma once
  2. #include <Thread.h>
  3. namespace GSL
  4. {
  5. class GSLSoundV : protected Framework::Thread
  6. {
  7. public:
  8. virtual ~GSLSoundV()
  9. {}
  10. virtual void playSound() = 0;
  11. virtual void setPause( bool p ) = 0;
  12. virtual void stopSound() = 0;
  13. virtual void warteAufSound( int zeit ) = 0;
  14. // Lautstärke: 0 - 0xFFFF
  15. virtual void setVolume( unsigned int links, unsigned int rechts ) = 0;
  16. // zum Speichern
  17. virtual void open() = 0;
  18. virtual int getDaten( char *buffer, int len ) = 0;
  19. virtual void close() = 0;
  20. virtual bool istMono() const = 0;
  21. virtual int getSampleRate() const = 0;
  22. virtual __int64 getDatLength() const = 0;
  23. // Reference Counting
  24. virtual GSLSoundV *getThis() = 0;
  25. virtual GSLSoundV *release() = 0;
  26. };
  27. }