audio_group_get_assets

This function returns an array containing the sound asset IDs belonging to the audio group with the given ID.

 

Syntax:

audio_group_get_assets(group_index);

ArgumentTypeDescription
group_indexAudio Group IDThe index of the audio group

 

Returns:

Array of Sound Asset

 

Example:

var _assets = audio_group_get_assets(audiogroup_default);

In the above code, an array containing all asset IDs in the default audio group audiogroup_default is returned by a call to audio_group_get_assets and stored in a temporary variable _assets.