12 Replies Latest reply on Dec 4, 2006 11:13 AM by cratica

    Annoying - Sounds Repeat!

    FasterPastor Level 1
      I made a game. Several of the sounds (that correspond with events) should only place once, but they place twice!

      I have tried various iterations.
      I have tried "WAVE" files in 11.025, 22.050, 44.1, and in 8-bit and 16-bit versions...
      I have tried "SWA" files in a couple of different bps sample rates / quality settings...

      It happens in authoring, and runtime, both in projector and in DCR.

      I have Dir 8.5.1. It also happened before I updated from 8.5 to 8.5.1.

      Previously, I tried the most simple code, with the member set (in the cast) to NOT loop:


      Then, I tried more complex code, still with the member set (in the cast) to NOT loop:

      sound(7).play([#member: member("PanelUp"), #loopCount: 1])

      Then (and please check this, someone) I tried even more complex code, because I had several things happening at once, and wanted to scan for the lowest open sound channel (is that a bad practice?):

      repeat with FreeSoundChan = 1 to 8
      if sound(FreeSoundChan).isBusy() = 0 then
      sound(FreeSoundChan).volume = 255
      exit repeat
      end if
      end repeat

      Does anyone have any idea what I can do to get these sounds to only place ONCE! Argh! :)