|
Panda3D
|
Public Member Functions | |
| def | __init__ |
| def | getCutoffDistance |
| def | getLocalizedVolume |
| def | playSfx |
| def | setCutoffDistance |
| def | setFinalVolume |
Public Attributes | |
| cutoffDistance | |
| cutoffVolume | |
| distanceScale | |
Static Public Attributes | |
| int | UseInverseSquare = 0 |
Play sound effects, potentially localized.
| def __init__ | ( | self | ) |
| def getCutoffDistance | ( | self | ) |
Return the curent cutoff distance.
| def getLocalizedVolume | ( | self, | |
| node, | |||
listenerNode = None, |
|||
cutoff = None |
|||
| ) |
Get the volume that a sound should be played at if it is localized at this node. We compute this wrt the camera or to listenerNode.
| def playSfx | ( | self, | |
| sfx, | |||
looping = 0, |
|||
interrupt = 1, |
|||
volume = None, |
|||
time = 0.0, |
|||
node = None, |
|||
listenerNode = None, |
|||
cutoff = None |
|||
| ) |
| def setCutoffDistance | ( | self, | |
| d | |||
| ) |
| def setFinalVolume | ( | self, | |
| sfx, | |||
| node, | |||
| volume, | |||
| listenerNode, | |||
cutoff = None |
|||
| ) |
Calculate the final volume based on all contributed factors.
int UseInverseSquare = 0 [static] |
1.7.3