Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2012-11-23 02:13:27 +0400
committerMitchell Stokes <mogurijin@gmail.com>2012-11-23 02:13:27 +0400
commitff94827965f9d7fc5b8868dcdcd427712deab35c (patch)
tree3d690e238259168ceeb1becf8905791e4ca58c6c /doc/python_api
parentf90298bc0a74326126ac51d6f2e693e4915dbe07 (diff)
BGE Docs: Documenting missing Sound Actuator attributes based on RNA UI strings.
Diffstat (limited to 'doc/python_api')
-rw-r--r--doc/python_api/rst/bge.types.rst84
1 files changed, 84 insertions, 0 deletions
diff --git a/doc/python_api/rst/bge.types.rst b/doc/python_api/rst/bge.types.rst
index 055ab7a04c1..9e1de819f80 100644
--- a/doc/python_api/rst/bge.types.rst
+++ b/doc/python_api/rst/bge.types.rst
@@ -3258,6 +3258,12 @@ Types
:type: float
+ .. attribute:: time
+
+ The current position in the audio stream (in seconds).
+
+ :type: float
+
.. attribute:: pitch
The pitch of the sound.
@@ -3270,6 +3276,84 @@ Types
:type: integer
+ .. attribute:: sound
+
+ The sound the actuator should play.
+
+ :type: Audaspace factory
+
+ .. attribute:: is3D
+
+ Whether or not the actuator should be using 3D sound. (read-only)
+
+ :type: boolean
+
+ .. attribute:: volume_maximum
+
+ The maximum gain of the sound, no matter how near it is.
+
+ :type: float
+
+ .. attribute:: volume_minimum
+
+ The minimum gain of the sound, no matter how far it is away.
+
+ :type: float
+
+ .. attribute:: distance_reference
+
+ The distance where the sound has a gain of 1.0.
+
+ :type: float
+
+ .. attribute:: distance_maximum
+
+ The maximum distance at which you can hear the sound.
+
+ :type: float
+
+ .. attribute:: attenuation
+
+ The influence factor on volume depending on distance.
+
+ :type: float
+
+ .. attribute:: cone_angle_inner
+
+ The angle of the inner cone.
+
+ :type: float
+
+ .. attribute:: cone_angle_outer
+
+ The angle of the outer cone.
+
+ :type: float
+
+ .. attribute:: cone_volume_outer
+
+ The gain outside the outer cone (the gain in the outer cone will be interpolated between this value and the normal gain in the inner cone).
+
+ :type: float
+
+ .. method:: startSound()
+
+ Starts the sound.
+
+ :return: None
+
+ .. method:: pauseSound()
+
+ Pauses the sound.
+
+ :return: None
+
+ .. method:: stopSound()
+
+ Stops the sound.
+
+ :return: None
+
.. class:: KX_StateActuator(SCA_IActuator)
State actuator changes the state mask of parent object.