Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

0 votes
Hello,

In the Unity editor, is it possible to link the "Mute Audio" button to the Wwise master or to another setting to mute the sound? This button has no functionality when Wwise is integrated.

Thanks

Théophile
in General Discussion by Théophile Demarcq (1.7k points)

1 Answer

0 votes
This is how I handled it.

#if UNITY_EDITOR
  AkAudioListener _akAudioListener;

  void Awake()
  {
    _akAudioListener = Object.FindObjectOfType<AkAudioListener>();
  }

  void Update()
  {
    _akAudioListener.enabled = !EditorUtility.audioMasterMute;
  }
#endif
by Ueda S. (180 points)
...