Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Best Way To Remove Sound Leaks?

Discussion in 'World Editor Help Zone' started by ALiEN95, Oct 19, 2009.

  1. ALiEN95

    ALiEN95

    Joined:
    Mar 4, 2009
    Messages:
    1,148
    Resources:
    1
    Spells:
    1
    Resources:
    1
    I was wondering what is the best way to destroy sound leaks because this actions like this are not working good

    -play (some sound)
    -destroy sound

    on that way it will not be played at all or it will be played once only
     
  2. MortAr

    MortAr

    Joined:
    Feb 25, 2009
    Messages:
    1,765
    Resources:
    7
    Icons:
    6
    Packs:
    1
    Resources:
    7
    Destroying sounds works only if the sound is placed in a point or region.
    Otherwise, they will stop play after they over.
     
  3. GhostWolf

    GhostWolf

    Joined:
    Jul 29, 2007
    Messages:
    4,952
    Resources:
    2
    Tools:
    1
    Tutorials:
    1
    Resources:
    2
    They do not leak...
     
  4. reason 3

    reason 3

    Joined:
    Aug 11, 2009
    Messages:
    1,549
    Resources:
    2
    Maps:
    1
    Spells:
    1
    Resources:
    2
    Many threads have been made about it,and most people think that the GUI action play sound does leak and it needs to be destroyed...although i don't know.
     
  5. aznricepuff

    aznricepuff

    Joined:
    Feb 22, 2006
    Messages:
    749
    Resources:
    4
    Maps:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    4
    GUI play sound does not leak, ever. The only time when sounds leak is when you create sounds from files (which isn't even possible in GUI) every time you play them.
     
  6. reason 3

    reason 3

    Joined:
    Aug 11, 2009
    Messages:
    1,549
    Resources:
    2
    Maps:
    1
    Spells:
    1
    Resources:
    2
    oh,thx didn't know that.+rep!
     
  7. ALiEN95

    ALiEN95

    Joined:
    Mar 4, 2009
    Messages:
    1,148
    Resources:
    1
    Spells:
    1
    Resources:
    1
    now that's nice,so when can sound leak if it does not need to use location like 3D sound?
     
  8. aznricepuff

    aznricepuff

    Joined:
    Feb 22, 2006
    Messages:
    749
    Resources:
    4
    Maps:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    4
    Working with sounds in GUI never leaks (this includes 3d and non-3d sounds). In JASS, it only leaks if you dynamically create sound handles from files without destroy t hem.