Community Q&A

Welcome to Audiokinetic’s community-driven Q&A forum. This is the place where Wwise and Strata users help each other out. For direct help from our team, please use the Support Tickets page. To report a bug, use the Bug Report option in the Audiokinetic Launcher. (Note that Bug Reports submitted to the Q&A forum will be rejected. Using our dedicated Bug Report system ensures your report is seen by the right people and has the best chance of being fixed.)

To get the best answers quickly, follow these tips when posting a question:

  • Be Specific: What are you trying to achieve, or what specific issue are you running into?
  • Include Key Details: Include details like your Wwise and game engine versions, operating system, etc.
  • Explain What You've Tried: Let others know what troubleshooting steps you've already taken.
  • Focus on the Facts: Describe the technical facts of your issue. Focusing on the problem helps others find a solution quickly.

0 votes

Hello, I'm having trouble building an iOS project in Unity (2022.1.11f1) after integrating Wwise (2022.1.0.7985).

The integration works because I can trigger/hear sounds in the editor but when I try to build the project for iOS I get the following error.

Assets/Wwise/API/Runtime/Generated/iOS/AkAudioSessionProperties_iOS.cs(65,10): error CS0246: The type or namespace name 'AkAudioSessionBehaviorOptions' could not be found (are you missing a using directive or an assembly reference?)

Error building Player because scripts had compiler errors

The project builds fine under macOS.

 

Any help will be greatly appreciated!

 

in General Discussion by Ando (190 points)

1 Answer

0 votes

To anyone who stumbles upon the above error...

In the following file

Assets/Wwise/API/Runtime/Generated/iOS/AkAudioSessionProperties_iOS.cs(65,10)

I commented out line 65-66.

public AkAudioSessionBehaviorOptions eAudioSessionBehavior { set { AkSoundEnginePINVOKE.CSharp_AkAudioSessionProperties_eAudioSessionBehavior_set(swigCPtr, (int)value); }  get { return (AkAudioSessionBehaviorOptions)AkSoundEnginePINVOKE.CSharp_AkAudioSessionProperties_eAudioSessionBehavior_get(swigCPtr); }
  }

which seems to have solved the problem and now the app builds on iOS. Perhaps someone from Audiokinetic can shed some light if the above solution will lead to errors elsewhere. 

 

by Ando (190 points)
...