menu
 

La section Questions et réponses de la communauté Audiokinetic est un forum où les utilisateurs de Wwise et de Strata peuvent poser des questions et répondre à celles des autres membres de la communauté. Si vous souhaitez obtenir une réponse de la part de l'équipe de soutien technique d'Audiokinetic, veillez à utiliser le formulaire de Tickets de Soutien.

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!

 

dans General Discussion par Ando (190 points)

1 Réponse

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. 

 

par Ando (190 points)
...