An advanced rendering pipeline for Panda3D
Angels Fall First: the Second Antarean War
Epoch: a space combat game

Panda3D Manual: Sound Intervals

See Loading and Playing Sounds and Music for basic information on how to load and play sounds.

Sound intervals play sounds from inside an interval. Like actor intervals, sound intervals have a loop parameter and the ability to be paused. Sound intervals also have volume and start time parameters.

mySound = loader.loadSfx("mySound.wav")
myInterval = SoundInterval(
loop = 0 or 1,
duration = myDuration,
volume = myVolume,
startTime = myStartTime

The looping provided by the sound interval is not clean. There will be a pause between loops of roughly a tenth of a second. See Manipulating Sounds for a better way to loop sounds.