Skip to content

cf_sound_set_time

Category: audio
GitHub: cute_audio.h


Seeks to a specific time in the sound.

CF_Result cf_sound_set_time(CF_Sound sound, double time_in_seconds);
Parameters Description
sound The sound.
time_in_seconds The playback position to seek to, in seconds.

Remarks

You can get a sound's playback time with cf_sound_get_time. This can be useful to sync a dynamic audio system that can turn on/off different instruments or sounds.

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_time
cf_sound_set_pitch
cf_sound_set_is_paused
cf_sound_set_is_looped
cf_sound_set_volume
cf_sound_stop