Fade music in

From Bennu Wiki
Jump to navigation Jump to 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_channel_volume()Set_distance()Set_music_position()Set_panning()Set_position()Set_song_volume()Set_Wav_Volume()Sound_close()Sound_init()Stop_song()Stop_wav()Unload_song()Unload_wav()