Unload song

From Bennu Wiki
Jump to navigation Jump to search


Definition

INT unload_song ( <INT SongID> )


Frees the memory occupied by the song file, previously loaded with load_song().

Parameters

INT SongID - The SongID of the song to unload.


Returns

INT : Error.

-1 - Error: sound inactive; invalid songID.
0 - No error.

Notes

Instead of an INT a POINTER may also be used in the SongID argument.


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