Skip to content

cf_sound_get_pan

Category: audio
GitHub: cute_audio.h


Returns the stereo pan of the sound.

float cf_sound_get_pan(CF_Sound sound);
Parameters Description
sound The sound.

Return Value

A value from 0.0f to 1.0f. 0.0f means left speaker, 1.0f means right speaker, 0.5f means equal both.

Remarks

You can set a sound pan with cf_sound_set_pan, or upon creation with cf_play_sound.

CF_SoundParams
CF_Sound
cf_sound_params_defaults
cf_play_sound
cf_sound_is_active
cf_sound_get_is_paused
cf_sound_get_is_looped
cf_sound_get_volume
cf_sound_get_pitch
cf_sound_get_time
cf_sound_set_time
cf_sound_set_is_paused
cf_sound_set_is_looped
cf_sound_set_volume
cf_sound_set_pan
cf_sound_stop
cf_sound_set_pitch