Fade music in

From Bennu Wiki
Revision as of 04:24, 14 March 2012 by 82.74.128.190 (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


Definition

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.

Parameters

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).

Returns

INT : Error.

-1 - Error: sound inactive.

See also

Fade_music_off().


Sound Functions
Fade_music_in()Fade_music_off()Is_playing_song()Is_playing_wav()Load_song()Load_wav()Pause_song()Pause_wav()Play_song()Play_wav()Reserve_channels()Resume_song()Resume_wav()Reverse_stereo()Set_Wav_Volume()Set_channel_volume()Set_distance()Set_music_position()Set_panning()Set_position()Set_song_volume()Sound_close()Sound_init()Stop_song()Stop_wav()Unload_song()Unload_wav()