From d64957ffee62106c013309c6b7e224bb72b056e2 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Wed, 3 Oct 2001 00:10:04 +0000 Subject: [PATCH] 'improved' Miles sound duration bug workaround --- direct/src/interval/SoundInterval.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/direct/src/interval/SoundInterval.py b/direct/src/interval/SoundInterval.py index e75b0e11b2..0147c083c2 100644 --- a/direct/src/interval/SoundInterval.py +++ b/direct/src/interval/SoundInterval.py @@ -35,7 +35,10 @@ class SoundInterval(Interval): if (duration == 0): self.notify.warning('zero length duration!') # MPG - hack for Miles bug - duration += 1.5 + #duration += 1.5 + # DCR - hack for Miles bug - adding 1.5 seconds caused + # problems for MG_neg_buzzer.wav + duration += min(duration * 0.4, 1.5) else: # This will screw up any intervals that base their # time on the duration of this sound interval