| 1234567891011121314151617181920212223242526272829303132333435 |
- $#include "Sound.h"
- class Sound : public Resource
- {
- Sound(Context* context);
- ~Sound();
- bool LoadRaw(Deserializer& source);
- bool LoadWav(Deserializer& source);
- bool LoadOggVorbis(Deserializer& source);
- void SetSize(unsigned dataSize);
- void SetData(const void* data, unsigned dataSize);
- void SetFormat(unsigned frequency, bool sixteenBit, bool stereo);
- void SetLooped(bool enable);
- void SetLoop(unsigned repeatOffset, unsigned endOffset);
- void FixInterpolation();
- float GetLength() const;
- unsigned GetDataSize() const;
- unsigned GetSampleSize() const;
- float GetFrequency();
- unsigned GetIntFrequency();
- bool IsLooped() const;
- bool IsSixteenBit() const;
- bool IsStereo() const;
- bool IsCompressed() const;
- tolua_readonly tolua_property__get_set float length;
- tolua_readonly tolua_property__get_set unsigned dataSize;
- tolua_readonly tolua_property__get_set unsigned sampleSize;
- tolua_readonly tolua_property__get_set float frequency;
- tolua_readonly tolua_property__get_set int intFrequency;
- tolua_property__is_set bool looped;
- tolua_readonly tolua_property__is_set bool sixteenBit;
- tolua_readonly tolua_property__is_set bool stereo;
- tolua_readonly tolua_property__is_set bool compressed;
- };
|