-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS Background Audio Not Working #51
Comments
I think we are not setting the |
Great, I will look out for the updated libs here. I appreciate the prompt responses! |
The iOS libs from the latest push: https://github.com/alessandrofama/wwise-godot-integration/suites/5976781777/artifacts/205723631 Not sure it will actually fix this, after researching a bit I've found this documentation entry: (https://www.audiokinetic.com/library/edge/?source=SDK&id=pg_ios_working_with_audio_session_with_wwise.html):
Does it actually work with Checking my private Wwise groups I've also found this post mentioning Audiokinetic confirming it's not possible (in contrast with the docs entry above): Might be just an Unity issue there... don't know. I will look for an updated answer to this issue and let you know if I got something. Sorry for the trouble! |
@alessandrofama Just tried with the libs you provided with |
Not sure if this is helpful at all, but I do notice a couple of errors logged in Xcode when running the app:
Even with the above errors, the audio works fine other than playing in the background, so I don't know if these are relevant to this issue. |
I don't think the errors are too relevant:
is a unrelated Godot bug.
This seems relevant at first glance, the error code is
The Waapi library didn't get exported (as expected), unrelated but should fix this soon. I was playing a bit in the iOS simulator today and I think Wwise just suspends the audio engine and ignores the audio session category and audio session category options.
Based on these tests, I would provisionally assume that this is an internal Wwise issue and not a problem with our integration or with the Godot engine. Please let me know if you manage to make this work(I think the integration demo in the SDK would be the best testing environment to check this). Maybe there is a setting I missed or something else that needs to be done to make background audio work. |
Won't expect this to be fixed anytime soon. Closing but feel free to reopen if you've got any updates. |
@alessandrofama Thank you for looking into this further, and sorry for the delay on my end. I can confirm that I cannot get background audio working even with the Integration Demo provided by Wwise. As far as I can tell, all of the necessary settings seem correct too. Do you have any ideas on how to proceed? Maybe I just need to contact someone on the Wwise side of things directly? This is a necessary feature for many use cases, and it currently does not seem possible. |
@alessandrofama I found out that Wwise 2022.1 will support iOS background audio. I tried the integration demo included in the Wwise 2022.1 Beta Preview 1 and confirmed that the background audio demo does work now. I just wanted to provide an update so you're aware that it was, in fact, an issue with Wwise and also that it will be resolved relatively soon in an upcoming release! |
Interesting, that's good to know, thank you for updating this issue! Then it will probably work with this integration as well. I will support 2022 once it is out of beta. It should be easy to upgrade after possible API changes are fixed. |
My understanding is that background audio should work on iOS with the following setup:
Suspend At Focus Loss
to OFFAudio Session Category
toPlayback
I saw a recent issue regarding background audio, and it seems like the above configuration should work. However, whenever I go to the phone's home screen or another app, the audio pauses, and it resumes when I return to the app.
Am I missing anything?
The text was updated successfully, but these errors were encountered: