audio_stop_sync_group


Description

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().


Syntax:

audio_stop_sync_group(group_index);


Argument Description
group_index The group index to stop playing.


Returns:

N/A


Example:

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".