audio_sound_get_audio_group

This function returns the ID of the audio group the given sound asset or sound instance belongs to.

 

Syntax:

audio_sound_get_audio_group(sound_index);

ArgumentTypeDescription
sound_indexSound Asset or Sound Instance IDThe index of a sound asset or instance

 

Returns:

Audio Group ID

 

Example:

var _group = audio_sound_get_audio_group(snd_animal);

The above code gets the ID of the audio group assigned to the sound snd_animal and stores it in a temporary variable _group.