GSLSoundV.h 783 B

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