Trees | Indices | Help |
|
---|
|
PyObjectPlus --+ | CValue --+ | SCA_ILogicBrick --+ | SCA_IActuator --+ | KX_SoundActuator
Sound Actuator.
The startSound(), pauseSound() and stopSound() do not require the actuator to be activated - they act instantly provided that the actuator has been activated once at least.
|
|||
Play Methods | |||
---|---|---|---|
|
|||
|
|||
|
|||
Deprecated | |||
|
|||
string |
|
||
|
|||
float |
|
||
|
|||
float |
|
||
|
|||
float |
|
||
|
|||
integer |
|
||
|
|||
|
|||
|
|||
|
|||
integer |
|
||
Inherited from SCA_ILogicBrick | |||
integer |
|
||
KX_GameObject |
|
||
|
|||
Inherited from CValue | |||
string |
|
||
Inherited from PyObjectPlus | |||
bool |
|
|
|||
string |
fileName The filename of the sound this actuator plays. |
||
integer |
looping The loop mode of the actuator. |
||
integer |
mode The operation mode of the actuator. |
||
3x3 matrix [[float]] |
orientation The orientation of the sound. |
||
float |
pitch The pitch of the sound. |
||
float array |
position The position of the sound as a list: [x, y, z]. |
||
float |
rollOffFactor The roll off factor. |
||
float array |
velocity The velocity of the emitter as a list: [x, y, z]. |
||
float |
volume The volume (gain) of the sound. |
||
Inherited from SCA_ILogicBrick | |||
---|---|---|---|
int |
executePriority This determines the order controllers are evaluated, and actuators are activated (lower priority is executed first). |
||
string |
name The name of this CValue derived object (read-only). |
||
KX_GameObject or None in exceptional cases. |
owner The game object this logic brick is attached to (read-only). |
||
Inherited from PyObjectPlus | |||
bool |
invalid Test if the object has been freed by the game engine and is no longer valid. |
|
Deprecated: Use the fileName attribute instead. |
Deprecated: Use the fileName attribute instead. |
Deprecated: Use the volume attribute instead. |
Deprecated: Use the volume attribute instead. |
Deprecated: Use the pitch attribute instead. |
Deprecated: Use the pitch attribute instead. |
Sets the rolloff factor for the sounds. Rolloff defines the rate of attenuation as the sound gets further away. Higher rolloff factors shorten the distance at which the sound can be heard.Deprecated: Use the rollOffFactor attribute instead. |
Deprecated: Use the rollOffFactor attribute instead. |
Bug: There are no constants defined for this method! Deprecated: Use the looping attribute instead. |
Deprecated: Use the looping attribute instead. |
Deprecated: Use the position attribute instead. |
Sets the velocity this sound is moving at. The sound's pitch is determined from the velocity.
Deprecated: Use the velocity attribute instead. |
Sets the orientation of the sound. The nine parameters specify a rotation matrix:| o11, o12, o13 | | o21, o22, o23 | | o31, o32, o33 | Deprecated: Use the orientation attribute instead. |
Deprecated:
Use the |
Deprecated:
Use the |
|
modeThe operation mode of the actuator. You can use one of the following constants:
|
orientationThe orientation of the sound. When setting the orientation you can also use quaternion [float,float,float,float] or euler angles [float,float,float]
|
rollOffFactorThe roll off factor. Rolloff defines the rate of attenuation as the sound gets further away.
|
velocityThe velocity of the emitter as a list: [x, y, z]. The relative velocity to the observer determines the pitch. List of 3 floats: [x, y, z].
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Wed Aug 26 12:07:41 2009 | http://epydoc.sourceforge.net |