Set channel volume

From Bennu Wiki
Jump to navigation Jump to search


Definition

INT set_channel_volume ( <INT channel> , <INT volume> )

Change the reproduction volume of the wave sound channel. With this function, it is possible to set the channels to different volumes.

Parameters

INT channel - The sound channel.
INT volume - New volume. (0..128).

Returns

INT : Error.

-1 - Error: sound inactive.
0 - No error.

Notes

This function changes the reproduction volume of the sound channel. The volume level can be set between 0 (silence) and 128 (original 100% volume of the track. The default volume is 128.



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