Panda3D

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes | Static Public Attributes

# SfxPlayer Class Reference

List of all members.

## 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

## Detailed Description

    Play sound effects, potentially localized.

## Constructor & Destructor Documentation

def __init__ | ( |  | self | ) |

## Member Function Documentation

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.

## Member Data Documentation

cutoffDistance

cutoffVolume

distanceScale

int UseInverseSquare = 0`[static]`

All Classes Namespaces Functions Variables Enumerations Enumerator Properties