cf_sound_set_sample_index¶
Category: audio
GitHub: cute_audio.h
Sets the sample index for the sound to control which sample to play next.
Parameters | Description |
---|---|
sound | The sound. |
sample_index | The index of the sample to play the sound from. |
Remarks¶
You can get a sound's playing index with cf_sound_get_sample_index. This can be useful to sync a dynamic audio system that can turn on/off different instruments or sounds.
Related Pages¶
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_sample_index
cf_sound_set_pitch
cf_sound_set_is_paused
cf_sound_set_is_looped
cf_sound_set_volume
cf_sound_stop