Set panning

From Bennu Wiki
Revision as of 05:35, 14 March 2012 by 82.74.128.190 (talk) (Created page with 'Category:functions Category:sound Category:mod_sound ==Definition== '''INT''' set_panning ( <'''INT''' channel> , <'''INT''' left> , <'''INT''' right> ) Sets the st…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Definition

INT set_panning ( <INT channel> , <INT left> , <INT right> )

Sets the stereo panning of a sound channel, i.e. set the volumes of the left and right speakers individually.

Parameters

INT channel - The sound channel to change the panning of.
INT left - The volume of the left speaker (0-255).
INT right - The volume of the right speaker (0-255).

Returns

INT : Status.

0 - Ok.
-1 - Error: sound inactive.


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