|
|
@@ -4,7 +4,6 @@ enum SoundType{};
|
|
|
|
|
|
class SoundSource : public Component
|
|
|
{
|
|
|
-
|
|
|
void Play(Sound* sound);
|
|
|
void Play(Sound* sound, float frequency);
|
|
|
void Play(Sound* sound, float frequency, float gain);
|
|
|
@@ -17,7 +16,6 @@ class SoundSource : public Component
|
|
|
void SetPanning(float panning);
|
|
|
void SetAutoRemove(bool enable);
|
|
|
|
|
|
-
|
|
|
Sound* GetSound() const;
|
|
|
SoundType GetSoundType() const;
|
|
|
float GetTimePosition() const;
|
|
|
@@ -30,16 +28,14 @@ class SoundSource : public Component
|
|
|
|
|
|
void PlayLockless(Sound* sound);
|
|
|
void StopLockless();
|
|
|
- void SetPlayPositionLockless(signed char* position);
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
tolua_readonly tolua_property__get_set Sound* sound;
|
|
|
- tolua_property__get_set SoundType soundType;
|
|
|
+ tolua_property__get_set SoundType soundType;
|
|
|
tolua_readonly tolua_property__get_set float timePosition;
|
|
|
- tolua_property__get_set float frequency;
|
|
|
- tolua_property__get_set float gain;
|
|
|
- tolua_property__get_set float attenuation;
|
|
|
- tolua_property__get_set float panning;
|
|
|
- tolua_property__get_set bool autoRemove;
|
|
|
+ tolua_property__get_set float frequency;
|
|
|
+ tolua_property__get_set float gain;
|
|
|
+ tolua_property__get_set float attenuation;
|
|
|
+ tolua_property__get_set float panning;
|
|
|
+ tolua_property__get_set bool autoRemove;
|
|
|
tolua_readonly tolua_property__is_set bool playing;
|
|
|
};
|