audio_debug

This function can be used to display debug information about the audio system, with true switching it on and false switching it off. Enabling this will display the Audio window of The Debug Overlay.

NOTE For synchronised groups of audio, you also have the function audio_sync_group_debug.

NOTE This function does not work on the HTML5 target platform.

 

Syntax:

audio_debug(enable);

ArgumentTypeDescription
enableBooleanEnable (set to true) or disable (false) audio debugging.

 

Returns:

N/A

 

Example:

if (debug_mode)
{
    audio_debug(true);
}
else
{
    audio_debug(false);
}

The above code will switch on or off the audio debug overlay depending on whether the game is running in debug mode or not.