audio_group_name


Description

This function will return a string containing the name of the given audio group for displaying or checking. When you define an audio group in the Game Options, you give it a unique "name" which is really a constant to use as an ID value for the group. All this function does is take the ID and return a string of the ID name you gave.


Syntax:

audio_group_name(groupID);

Argument Description
groupID The index value constant of the audio group to check (as defined in the Audio Groups Window)


Returns:

String


Example:

var name= audio_group_name(audiogroup_level1);
draw_text(32, 32, "Now Playing Group: " + name);

The above code retrieves the name of the given audio group constant and displays it on the screen.