Skip to content

cf_play_sound

Category: audio
GitHub: cute_audio.h


Plays a sound.

CF_Sound cf_play_sound(CF_Audio audio_source, CF_SoundParams params);
Parameters Description
audio_source The CF_Audio samples for the sound to play.
params CF_SoundParams on how to play the sound. You can use default values by calling cf_sound_params_defaults.

Return Value

Returns a playing sound CF_Sound.

CF_SoundParams
CF_Sound
cf_sound_params_defaults
cf_sound_get_pitch
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_volume
cf_sound_set_pan
cf_sound_stop
cf_sound_set_pitch