audio_destroy_sync_group


描述

Audio sync groups need to be destroyed when not in use to free up the memory and sound resources associated with them using this function. It takes the group index as returned when the group was created using the function audio_create_sync_group(), and frees all resources used by the group.

NOTE: This functionality is not available for the HTML5 target platform.


语法:

audio_destroy_sync_group(group_index);


参数 描述
group_index The group index to be destroyed.


Returns:

N/A(无返回值)


例如:

audio_destroy_sync_group(sg);

The above code destroys the sync group indexed in the variable "sg", and would probably be used in the destroy or Room End events.