Announcement

Collapse
No announcement yet.

BUG: TAlarm

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • BUG: TAlarm

    gawsh, an honest to goodness bug report.

    This bit of code:

    [code:1:095587bd77]
    // Instead of looping an AmbientSound, do repeated PlaySounds,
    // as AmbientSounds do not get subjected to the sound propagation
    // tests.
    // AmbientSound = LoopSound;
    SoundLoop:
    PlaySound(LoopSound);
    Sleep(GetSoundDuration(LoopSound)) ;
    Goto('SoundLoop');
    }

    [/code:1:095587bd77]

    It repeats the loop before it finishes it. I think it does it with the standard sounds, though I noticed it with custom ones. I've tried them as looping sounds and non-looping ones, it does the same.

    At first, I thought it might be using the duration of the start sound I was using to control the loop, but it does the same even if I use a startup and loop sound of exactly the same duration.

  • #2
    Ta... I hope it's not a bug with GetSoundDuration()!

    I'll investimigate'm.
    AI Programmer,
    Thievery UT

    Comment

    Working...
    X