SetMusicVolume for fading music in and out?

Monkey Forums/Monkey Programming/SetMusicVolume for fading music in and out?

benmc(Posted 2012) [#1]
Would using SetMusicVolume be acceptable for fading music in and out?

I'm worried that on some devices it may show an on-screen volume control of some kind while I'm changing the volume. Or it affects their entire devices media volume for anything else they may use. I don't want to change the volume to 0.1 and have that modify their alarm volume or something, for example.


NoOdle(Posted 2012) [#2]
Yes that is fine. It shouldn't affect anything external to monkey.


therevills(Posted 2012) [#3]
We use SetMusicVolume in Diddy for exactly this and it works fine.

It doesnt show anything on screen it only changes the volume internally for your game.


benmc(Posted 2012) [#4]
Excellent, thank you. I had some nice music created for my next game, but this is the first time I've had Menu Music AND In-Game Music separate, so I want to fade one out before starting the next one instead of an abrupt change, and if I can use SetMusicVolume for this - perfect.