cf_music_set_on_finish_callback¶
Category: audio
GitHub: cute_audio.h
Sets the callback for notifications of when the current song finishes playing.
void cf_music_set_on_finish_callback(void (*on_finished)(void* udata), void* udata, bool single_threaded);
Parameters | Description |
---|---|
on_finished | Called whenever the current song finishes. |
udata | An optional pointer handed back to you within the on_finished callback. |
single_threaded | Set to true to queue up callbacks and invoke them on the main thread. Otherwise this callback is called from the mixing thread directly. |
Related Pages¶
CF_Audio
cf_audio_sample_rate
cf_audio_sample_count
cf_audio_channel_count