audio_sync_group_debug

This function displays debug information about any given sync group (the group index is the value returned when the group was created using the function audio_create_sync_group). You can call the function with a value of -1 to switch off the overlay.

When you are debugging the audio sync groups, the overlay will show:

Note that for general debugging of audio, you also have the function audio_debug.

NOTE This functionality is not available for the HTML5 target platform.

 

Syntax:

audio_sync_group_debug(group_index);

ArgumentTypeDescription
group_indexAudio Sync Group IDThe group index to debug, or -1 to switch off the debugging.

 

Returns:

N/A

 

Example:

if (debug_mode)
{
    audio_sync_group_debug(sg);
}
else
{
    audio_sync_group_debug(-1);
}

The above code will switch on or off the audio sync group debug overlay showing the sync group indexed in the variable sg depending on whether the game is run in debug mode or not.