• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Sound Leak help

Status
Not open for further replies.
Level 9
Joined
Apr 20, 2008
Messages
125
As I understand it, sounds tend to leak. However, if I destroy a sound after playing it, I can't use it again. How do I solve this problem? I'd like to use a certain sound each time I cast a trigger-enhanced ability.

Thanks in advance!
 
Level 11
Joined
Jun 21, 2007
Messages
505
Basically, sounds leak when you don't need them anymore. Do not destroy a sound if you are sure you will use it again.
When you don't need that sound anymore, then - why would it waste your computer's memory? - destroy it.

If you destroy sounds straight after they've started playing then they won't play. So, I suppose that you can stop sounds also by destroying them.
 
Status
Not open for further replies.
Top