• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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