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.

Wwise 2018.1.6 Unity Building for PC on Mac fails

0 votes

I am trying to build a PC player on a Mac computer for Unity and Wwise 2018.1.6. However, the initialization settings script won't compile due to the platform identification.

On AkWindowsSettings.cs, line 47 it says

       public override void CopyTo(AkPlatformInitSettings settings)
      {
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN || UNITY_WSA
         settings.eAudioAPI = (AkAudioAPI)m_AudioAPI;
         settings.bGlobalFocus = m_GlobalFocus;       
#endif
      }
So on Mac, if I set Unity target platform to PC, the UNITY_STANDALONE_WIN condition would be triggered, and the variables eAudioAPI and bGlobalFocus can't be find, because both of them belong to 
AkPlatformInitSettings_Windows.cs, which is not compiled on a Mac.
 
So instead of commenting out those two lines(which might cause some bugs), are there any alternative solutions?
BTW it doesn't make sense that I can't upload a local picture here. Wwise forum should include this feature. 
 
 
 
asked Apr 21, 2019 in General Discussion by Victor L. (230 points)

Please sign-in or register to answer this question.

...