Sound.pkg 871 B

123456789101112131415161718192021222324
  1. $#include "Sound.h"
  2. class Sound : public Resource
  3. {
  4. float GetLength() const;
  5. unsigned GetDataSize() const;
  6. unsigned GetSampleSize() const;
  7. float GetFrequency();
  8. unsigned GetIntFrequency();
  9. bool IsLooped() const;
  10. bool IsSixteenBit() const;
  11. bool IsStereo() const;
  12. bool IsCompressed() const;
  13. tolua_readonly tolua_property__get_set float length;
  14. tolua_readonly tolua_property__get_set unsigned dataSize;
  15. tolua_readonly tolua_property__get_set unsigned sampleSize;
  16. tolua_readonly tolua_property__get_set float frequency;
  17. tolua_readonly tolua_property__get_set int intFrequency;
  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. };