menu
 

在 Audiokinetic 社区问答论坛上,用户可对 Wwise 和 Strata 相关问题进行提问和解答。如需从 Audiokinetic 技术支持团队获取答复,请务必使用技术支持申请单页面。

0 投票

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. 
 
 
 
分类:General Discussion | 用户: Victor L. (310 分)

Please sign-in or register to answer this question.

...