Unload wav

From Bennu Wiki
Jump to navigation Jump to search


Definition

INT unload_wav ( <INT WaveID> )

Frees the memory occupied by the wave file, previously loaded with load_wav().

Parameters

INT WaveID - The WaveID of the sound to unload.

Returns

INT : Error.

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

Notes

Instead of an INT a POINTER may also be used in the WaveID 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()