Jump to content
Sign in to follow this  
anthonyfromtheuk

actually turn music off?

Recommended Posts

Is there a way to actually turn music off, if i use fade music it just carries on playing at 0 Decibels. I need a small bit of code to actually turn it off.

have tried

setMusicEffect "$STOP$";

with no luck

Share this post


Link to post
Share on other sites
Out of curiosity, how can you tell it's still playing?

Because I am fading the music out once a round ends and once a new round starts I want the volume to return to full so i can retrigger my audio, but when I set the audio volume back up to 1 at the end of a round the previous audio if it hasn't finished is still playing.

---------- Post added at 18:21 ---------- Previous post was at 18:13 ----------

Hope it helps sorry if not.

That is what I was doing using fade, I still want use fade but once it has faded to 0 I want to turn it off so i may then turn the volume back up ready for the next round.

Share this post


Link to post
Share on other sites

I am sure I read on these very forums that the easiest way to stop a music track is to play an empty one i.e. "" (I can't recall the correct command as I have never used it)

I liken it to the hint command -

hint "Hi";sleep 2; hint "";

ps. its completely possible I have this wrong. Fire away!!! :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×