0
0

I try to fade out of the music when you switch songs. However, sometimes the code works, sometimes it doesn’t. Channel 0 is the only one I am using. Here is the code I use.

for(int i=255; i>=0; i-=4) {
FSOUND_SetVolumeAbsolute(0,i);
Sleep(1);
}
FSOUND_Stream_Stop(0);
song=FSOUND_Stream_OpenFile(map.scripts[CurScript].commands[posinscript].argsS,FSOUND_LOOP_NORMAL,0);
FSOUND_Stream_Play(0,song); //play the song

It’s bothering me a lot. Thanks!

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.