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.
audio_group_name(groupID);
参数 | 描述 |
---|---|
groupID | The index value constant of the audio group to check (as defined in the Audio Groups Window) |
String(字符串)
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.