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);
Argument | Type | Description |
---|---|---|
group_index | Audio Sync Group ID | 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".