Fade music in

From Bennu Wiki
Revision as of 04:24, 14 March 2012 by (talk) (Created page with 'Category:functions Category:sound Category:mod_sound ==Definition== '''INT''' fade_music_in ( <'''INT''' songID> , <'''INT''' num_loops> , <'''INT''' ms> ) Fades th…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


INT fade_music_in ( <INT songID> , <INT num_loops> , <INT ms> )

Fades the music in, stepping up the volume from silence to the main song volume, i.e. set by the Set_song_volume() function.


INT songID - The identification code of the song, returned by load_song().
INT num_loops - The number of loops, a value of -1 will be an infinite loop.
INT ms - Microseconds of fading (the duration).


INT : Error.

-1 - Error: sound inactive.

See also


Sound Functions