Need sound to finish loop before stopping
Hi everyone, I've got the sound to play when LMB is clicked and to stop when LMB is released. Is there a way to have the sound play the rest of its' loop before it stops? Right now it's very abrupt.
asked Jun 23 '17 at 02:16 PM in Blueprint Scripting
On your finished event add a re-triggerable delay and set it to the time span of your audio that should give it enough time to finish before it stops.
answered Jun 27 '17 at 06:19 AM
You can check the Playtime and make a modulo operation with your loop time. Then you subtract your loop time by the calculated value and you get the rest of the time that needs to be played. Save this variable and use it either for a Fade Out or Delay Node before stopping. Let me know if it helps! <3
answered Jun 23 '17 at 02:25 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here