Sound.pkg 772 B

123456789101112131415161718192021222324252627
  1. $#include "Sound.h"
  2. class Sound : public Resource
  3. {
  4. public:
  5. // Methods:
  6. float GetLength() const;
  7. unsigned GetSampleSize() const;
  8. float GetFrequency();
  9. void SetLooped(bool enable);
  10. bool IsLooped() const;
  11. bool IsSixteenBit() const;
  12. bool IsStereo() const;
  13. bool IsCompressed() const;
  14. // Properties:
  15. tolua_readonly tolua_property__get_set float length;
  16. tolua_readonly tolua_property__get_set unsigned sampleSize;
  17. tolua_readonly tolua_property__get_set float frequency;
  18. tolua_property__is_set bool looped;
  19. tolua_readonly tolua_property__is_set bool sixteenBit;
  20. tolua_readonly tolua_property__is_set bool stereo;
  21. tolua_readonly tolua_property__is_set bool compressed;
  22. };