SfxPlayer

Inheritance:

Methods of SfxPlayer:

__init__
def __init__(self)

Undocumented function.

getCutoffDistance
def getCutoffDistance(self)

Return the curent cutoff distance.

getLocalizedVolume
def getLocalizedVolume(self, node, listenerNode=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.

playSfx
def playSfx(self, sfx, looping=0, interrupt=1, volume=None, time=0.0, node=None, listenerNode=None)

Undocumented function.

setCutoffDistance
def setCutoffDistance(self, d)

Undocumented function.

setFinalVolume
def setFinalVolume(self, sfx, node, volume, listenerNode)

Calculate the final volume based on all contributed factors.