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.

Using AkAudioSessionCategoryPlayback for iOS throws errors

+2 votes

Hi! I'm stuck on trying to using AkAudioSessionCategoryPlayback on iOS with Unity 2020.2.7f1 - I know it exists in the SDK: https://www.audiokinetic.com/library/edge/?source=SDK&id=_aki_o_s_sound_engine_8h_a45868714def93979efd2a766660de8e0.html

I do see the Playback category when I look in the SDK for Wwise 2021.1.3 (the version we're using) in the AkiOSSoundEngine.h file, but it is not in the AKiOSSettings.cs file within /Assets/Wwise/API/Runtime/Handwritten/iOS/AkiOSSettings.cs line 52 is missing the Playback option.

And when I tried to manually set the category to Playback, I got this issue in XCode - 2021-10-13 14:35:59.573033-0700 abra[63427:20813518] AK Error: Failed to set audio session category.: Error: Error Domain=NSOSStatusErrorDomain Code=2003329396 "(null)". This seems to imply that it's an Apple issue, and not on the Wwise side.

Wondering if anyone might know how to get the AkAudioSessionCategoryPlayback to work - the use case is getting Wwise audio to play while the app is in the background or the screen is off for a game that is primarily played through audio.

asked Oct 14, 2021 in Feature Requests by Jenny X. (120 points)
Could you solve this issue?
Where you able to solve your issue, Jenny? We are facing the same challenge of making the app play audio while in background with screen off.

Please sign-in or register to answer this question.

...