Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | List of all members
SoundInterval Class Reference
Inheritance diagram for SoundInterval:
Interval DirectObject

Public Member Functions

 __init__ (self, sound, loop=0, duration=0.0, name=None, volume=1.0, startTime=0.0, node=None, seamlessLoop=True, listenerNode=None, cutOff=None)
 
 finish (self, *args, **kArgs)
 
 loop (self, startT=0.0, endT=-1.0, playRate=1.0, stagger=False)
 
 privFinalize (self)
 
 privInitialize (self, t)
 
 privInstant (self)
 
 privInterrupt (self)
 
 privReverseFinalize (self)
 
 privReverseInitialize (self, t)
 
 privReverseInstant (self)
 
 privStep (self, t)
 
- Public Member Functions inherited from Interval
 __repr__ (self, indent=0)
 
 clearToInitial (self)
 
 getDoneEvent (self)
 
 getDuration (self)
 
 getLoop (self)
 
 getName (self)
 
 getOpenEnded (self)
 
 getPlayRate (self)
 
 getState (self)
 
 getT (self)
 
 intervalDone (self)
 
 isPaused (self)
 
 isPlaying (self)
 
 isStopped (self)
 
 pause (self)
 
 popupControls (self, tl=None)
 
 privDoEvent (self, t, event)
 
 privPostEvent (self)
 
 resume (self, startT=None)
 
 resumeUntil (self, endT)
 
 setDoneEvent (self, event)
 
 setLoop (self, loop=1)
 
 setPlayRate (self, playRate)
 
 setT (self, t)
 
 setupPlay (self, startT, endT, playRate, doLoop)
 
 setupResume (self)
 
 start (self, startT=0.0, endT=-1.0, playRate=1.0)
 
 stepPlay (self)
 
- Public Member Functions inherited from DirectObject
 accept (self, event, method, extraArgs=[])
 
 acceptOnce (self, event, method, extraArgs=[])
 
 addTask (self, *args, **kwargs)
 
 detectLeaks (self)
 
 doMethodLater (self, *args, **kwargs)
 
 getAllAccepting (self)
 
 ignore (self, event)
 
 ignoreAll (self)
 
 isAccepting (self, event)
 
 isIgnoring (self, event)
 
 removeAllTasks (self)
 
 removeTask (self, taskOrName)
 

Public Attributes

 currT
 
 cutOff
 
 fLoop
 
 listenerNode
 
 node
 
 sound
 
 soundDuration
 
 startTime
 
 state
 if self._reverse:
 
 volume
 
- Public Attributes inherited from Interval
 currT
 
 doneEvent
 
 duration
 
 es
 
 name
 
 openEnded
 
 pname
 
 pstats
 
 setTHooks
 
 state
 

Static Public Attributes

 notify = directNotify.newCategory('SoundInterval')
 
int soundNum = 1
 
- Static Public Attributes inherited from Interval
 notify = directNotify.newCategory("Interval")
 
int playbackCounter = 0
 
- Static Public Attributes inherited from DirectObject
 accept_once = acceptOnce
 
 add_task = addTask
 
 detect_leaks = detectLeaks
 
 do_method_later = doMethodLater
 
 get_all_accepting = getAllAccepting
 
 ignore_all = ignoreAll
 
 is_accepting = isAccepting
 
 is_ignoring = isIgnoring
 
 remove_all_tasks = removeAllTasks
 
 remove_task = removeTask
 

Protected Attributes

 _fLoop
 
 _inFinish
 
 _reverse
 
 _seamlessLoop
 
 _soundPlaying
 
- Protected Attributes inherited from DirectObject
 _taskList
 

Additional Inherited Members

- Protected Member Functions inherited from DirectObject
 _addTask (self, task)
 
 _clearTask (self, task)
 
- Properties inherited from Interval
 done_event = property(getDoneEvent, setDoneEvent)
 
 open_ended = property(getOpenEnded)
 
 play_rate = property(getPlayRate, setPlayRate)
 
 stopped = property(isStopped)
 
 t = property(getT, setT)
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
sound,
loop = 0,
duration = 0.0,
name = None,
volume = 1.0,
startTime = 0.0,
node = None,
seamlessLoop = True,
listenerNode = None,
cutOff = None )
__init__(sound, loop, name)

Reimplemented from Interval.

Member Function Documentation

◆ finish()

finish ( self,
* args,
** kArgs )

Reimplemented from Interval.

◆ loop()

loop ( self,
startT = 0.0,
endT = -1.0,
playRate = 1.0,
stagger = False )

Reimplemented from Interval.

◆ privFinalize()

privFinalize ( self)

Reimplemented from Interval.

◆ privInitialize()

privInitialize ( self,
t )

Reimplemented from Interval.

◆ privInstant()

privInstant ( self)

Reimplemented from Interval.

◆ privInterrupt()

privInterrupt ( self)

Reimplemented from Interval.

◆ privReverseFinalize()

privReverseFinalize ( self)

Reimplemented from Interval.

◆ privReverseInitialize()

privReverseInitialize ( self,
t )

Reimplemented from Interval.

◆ privReverseInstant()

privReverseInstant ( self)

Reimplemented from Interval.

◆ privStep()

privStep ( self,
t )

Reimplemented from Interval.

Member Data Documentation

◆ _fLoop

_fLoop
protected

◆ _inFinish

_inFinish
protected

◆ _reverse

_reverse
protected

◆ _seamlessLoop

_seamlessLoop
protected

◆ _soundPlaying

_soundPlaying
protected

◆ currT

currT

◆ cutOff

cutOff

◆ fLoop

fLoop

◆ listenerNode

listenerNode

◆ node

node

◆ notify

notify = directNotify.newCategory('SoundInterval')
static

◆ sound

sound

◆ soundDuration

soundDuration

◆ soundNum

int soundNum = 1
static

◆ startTime

startTime

◆ state

state

if self._reverse:

Don't attempt to play the sound backwards.

return

◆ volume

volume