Browse Source

'improved' Miles sound duration bug workaround

Darren Ranalli 24 years ago
parent
commit
d64957ffee
1 changed files with 4 additions and 1 deletions
  1. 4 1
      direct/src/interval/SoundInterval.py

+ 4 - 1
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