CRIWARE Unity Plugin Manual  Last Updated: 2024-07-12
ADX Tips
This section provides useful information to use ADX with Unity.

Disabling Unity's standard audio

In Unity 4.2 or later, the Disable Audio property has been added to the Audio settings of a project. You can use it to disable Unity's standard audio.
If you use ADX and do not use Unity's standard audio, you can also disable it. It may reduce the CPU load and the memory usage of the application.
cri4u_tips_adx2_disable_unity_audio_menu.png

cri4u_tips_adx2_disable_unity_audio_inspector.png

On some platforms, it is mandatory to enable the above-mentioned "Disable Unity Audio" when using ADX audio output.
Therefore, when you deploy the CRIWARE Unity Plugin and build your application, this flag will be forcibly enabled (for Unity 5.6 and above) except for some platforms.

Enable Unity standard audio

If you want to use any Unity standard audio function such as standard microphone input, please follow the procedure below to prevent the above-mentioned flag from being update by the plugin.

  • Create CriWareBuildPreProcessorPrefs.asset from the Unity Editor menu.
    cri4u_tips_adx2_enable_unity_audio_menu.png

  • Disable the "Mute Other Audio" flag on the asset.
    cri4u_tips_adx2_enable_unity_audio_inspector.png

  • In the project's Audio settings (Edit> Project Settings> Audio), uncheck "Disable Unity Audio".