'improved' Miles sound duration bug workaround

This commit is contained in:
Darren Ranalli 2001-10-03 00:10:04 +00:00
parent dda906ce1c
commit d64957ffee

View File

@ -35,7 +35,10 @@ class SoundInterval(Interval):
if (duration == 0): if (duration == 0):
self.notify.warning('zero length duration!') self.notify.warning('zero length duration!')
# MPG - hack for Miles bug # 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: else:
# This will screw up any intervals that base their # This will screw up any intervals that base their
# time on the duration of this sound interval # time on the duration of this sound interval