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.

+1 vote
Hi,

I'm porting a Unity game to consoles, & have installed the xboxone plugin via the wwise installer, & everything opens fine in unity.

When I go to build it though I get the error: "Assets/Wwise/Deployment/API/Generated/XBoxOne/AkAudioAPI_XBoxOne.cs(11,13): error CS0101: The namespace `global::' already contains a definition for `AkAudioAPI'"

 

When I check the source file, the equivalent windows file: : AkAudioAPI_Windows.cs   also contains a definition, which is withina: "#if UNITY_XBOXONE"

I could go through all the code & remove these #if UNITY_XBOXONE , but since these files are automatically generated by swig, and I'm guessing here, some configuration within the wwise installer, I would be breaking the wwise workflow by doing this.

 

What is the correct way to generate the correct code?
in General Discussion by Kyle O. (110 points)

1 Answer

0 votes
I had a similar issue (I was building from the command line though) and the problem was that even though the buildTarget was set, the buildPlayerOptions didn't have the target and targetGroup set to the correct console.
by Marc A. (150 points)
...