Skip to content

cf_music_set_sample_index

Category: audio
GitHub: cute_audio.h


Sets the sample index to play at for the music.

CF_Result cf_music_set_sample_index(int sample_index);
Parameters Description
sample_index Tells where to play music from within the CF_Audio for the currently playing music track.

Remarks

This can be useful to sync a dynamic audio system that can turn on/off different instruments or sounds.

cf_music_play
cf_music_stop
cf_music_set_volume
cf_music_set_loop
cf_music_pause
cf_music_resume
cf_music_switch_to
cf_music_crossfade
cf_music_get_sample_index
cf_music_set_pitch