Skip to content

cf_sound_set_volume

Category: audio
GitHub: cute_audio.h


Sets the volume for the sound.

void cf_sound_set_volume(CF_Sound sound, float volume);
Parameters Description
sound The sound.
volume A value from 0.0f to 1.0f. 0.0f meaning silent, 1.0f meaning max volume.

Remarks

You can get a sound's volume with cf_sound_get_volume.

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_pan
cf_sound_get_time
cf_sound_set_time
cf_sound_set_is_paused
cf_sound_set_is_looped
cf_sound_set_pitch
cf_sound_set_pan
cf_sound_stop