From 17b8737ae2d4f8b83949f78a6645b04f9bdd7fc5 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Fri, 15 Dec 2006 19:09:11 +0000 Subject: [PATCH] SoundInterval already does all of this except for loading the sound itself --- direct/src/showbase/PositionalSound.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100755 direct/src/showbase/PositionalSound.py diff --git a/direct/src/showbase/PositionalSound.py b/direct/src/showbase/PositionalSound.py deleted file mode 100755 index f46c46c7d9..0000000000 --- a/direct/src/showbase/PositionalSound.py +++ /dev/null @@ -1,20 +0,0 @@ -from direct.interval.IntervalGlobal import * -from pandac.PandaModules import NodePath -import random - -class PositionalSound: - def __init__(self, soundPath, node, volume=None): - if volume is None: - volume = 1. - self._sound = base.loadSfx(soundPath) - self._ival = SoundInterval(self._sound, node=node, volume=volume) - self.start() - def destroy(self): - self._ival.pause() - del self._ival - del self._sound - def start(self): - self._ival.loop() - self._ival.setT(random.random() * self._sound.length()) - def stop(self): - self._ival.stop()