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.

Wwise to play music when screen is locked AND dimmed

0 votes

Hello, I'm using Unity/Wwise > building for iOS. I'm trying to make the app play my music when the iphone is locked.

1. I couldn't find Playback in the dropdown at Unity > Project Settings > Wwise Initialization settings > iOS Specific Advanced Settings > Audio Session Category. So I went into AkiOSSettings.cs file and manually added a new property to the public enum Category { Ambient, SoloAmbient, PlayAndRecord, Playback } Then, I was able to select the option from the drop down.

2. When launching the app on an iPhone, upon locking the screen the music plays until the screen dims. When I tap on the screen to reveal the wallpaper the music continues to play. A few seconds later when the screen dims the music stops.

When the screen is dimmed I get an error in Xcode - AK Error: Voice Starvation

Can anyone help me out to resolve the issue? Is there a Wwise setting I'm missing, is it an iOS settings that has to be set up or is it a bug?

Using Wwise v2022.1.0 (can't upgrade because the Upgrade button in the Wwise Launcher is disabled and I can't figure out how to upgrade to the newest version). Unity 2022 and iOS 12+

Thanks in advance

asked Mar 30, 2023 in General Discussion by Ando (190 points)
edited Mar 30, 2023 by Ando

Please sign-in or register to answer this question.