4.5.9 sfx looping continuously?

Kanbei85

Member
I've got a problem trying to use the PlaySound command with an sfx_ track. When it plays, the game simply loops the sound effect continuously from that point forward. How do I get it to play the sound effect only once?
 

Kanbei85

Member
The volume macro on a sound effect instrument must end with a 0 for it to not loop.
Yes, this is another barely documented quirk.

Okay, that solved part of the problem. But the sound effect is not playing correctly still. It sounds like the end of it is extending far too long. It's supposed to be just a real quick "swish", but instead it's like "swishhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh"
 

TakuikaNinja

Active member
Okay, that solved part of the problem. But the sound effect is not playing correctly still. It sounds like the end of it is extending far too long. It's supposed to be just a real quick "swish", but instead it's like "swishhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh"
What does the volume macro look like?
 

kevin81

Well-known member
Alternatively, you can add a "silent" note (an instrument with a volume macro set to zero) and add that at the end of your sound effect to ensure it stops playing. This is what I usually do to prevent playback issues on sound effects.

1640076255242.png
 

Kanbei85

Member
Thanks guys. The problem was the volume envelope I created. I dragged it out too long. Implementing the silent note fixed the issue completely.
 
Top Bottom