audio_group_stop

Stops all sounds assigned to a given audio group playing.

Syntax:

audio_group_stop(groupID);


Argument Description
groupID The index of the audio group to stop (as defined in the Global Game Settings Audio Groups Tab)


Returns: N/A


Description

This function will stop all sounds from the given audio group that are currently playing.


Example:

if keyboard_check_pressed(vk_space)
   {
   audio_group_stop(audiogroup_level1);
   }

The above code checks for the "space" key and then stops all the audio playing from the given group.


Back: Audio Groups
Next: audio_group_set_gain
© Copyright YoYo Games Ltd. 2018 All Rights Reserved