i've made this function to fade out the music but it doesn't work.....why?
it seems that the master volume=0 is too high and the fade out is not smooth....
function FadeOutMusic(int tempo){
int i;
i=100;
while (i>=0){
SetMusicMasterVolume(i);
Wait(tempo/100);
i=i-1;
}
StopMusic();}
thx
Cisco
Unfortunately, putting the master volume doesn't turn it all the way down. It just puts it about half the volume as the highest value. I've tried to find a way around this, but no luck..
If you're using Mp3 or OGG for music, you could try the crossfade option, but that won't work for Midi or Mod tracks..
If you're not using MIDI music, use SetDigitalMasterVolume instead - it allows a full range of volume fading.
But SetDigitalMasterVolume affects all other digital sound as well (sound effects, ambience).
Is there a technical reason why digital music can't be turned further down? Otherwise this would be on my wishlist.