This function will stop the given sync group if it is playing, with the group index being the value returned when you created the group using the function audio_create_sync_group().
NOTE: This functionality is not available for the HTML5 target platform.
audio_stop_sync_group(group_index);
参数 | 描述 |
---|---|
group_index | The group index to stop playing. |
N/A(无返回值)
if mouse_check_button_pressed(mb_left)
{
audio_stop_sync_group(sg);
}
The above code checks for a mouse click, and if one is detected it stops the sync group indexed in the variable "sg".