Post

Replies

Boosts

Views

Activity

AUGraphInitialize() fails when app is backgrounded
I'm using AUGraph to set up my playback engine. I know AUGraph is marked with API_TO_BE_DEPRECATED in favor of AVAudioEnginebut it works perfect for my needs and has for many years.My player (as most players) may play audio in the background and a new song will be played when the previous ends.This works fine if both songs are using kAudioUnitSubType_RemoteIO for playback (setup using an AUGraph)meaning that tearing down and setting up a new audo output works also when the app is backgrounded.However AUGraphInitialize() fails when the app is backgrounded if the previous song was played using MPMusicPlayerController.So the switch from MPMusicPlayerController to kAudioUnitSubType_RemoteIO makes it fail.Fails with '!int' error: AUGraphInitialize() failed. ('!int' == 560557684)[aurioc] AURemoteIO.cpp:1086:Initialize: failed: 560557684 (enable 2, outf< 2 ch, 44100 Hz, Int16, inter> inf< 2 ch, 0 Hz, Float32, non-inter>)This problem only occur if the app is backgrounded, else it works fine.According to the thread belowhttps://forums.developer.apple.com/thread/38917it's not always possible to initialize an kAudioUnitSubType_RemoteIO when the app is backgrounded.One suggestion is to use AVAudioSessionCategoryOptionMixWithOthers which makes it work also when backgrounded but it's not any good solution.It would be nice if any of the Apple audio engineers could explain if there is a way to make this work?Would a change AVAudioEngine make it work (I guess not since it's probably still using kAudioUnitSubType_RemoteIO under the hood).I need to use MPMusicPlayerController since some files are DRM protected and for other files I need to use kAudioUnitSubType_RemoteIOto be able to process the audio samples.Not having this working when the app is backgrounded makes for a very bad user experience.
0
0
2.2k
Mar ’20
Xcode -> Organizer ->Crashes -> "Unable to download crash information."
Using Version 10.1 (10B61)Most of the time Xcode are unable to downlaod crash reports using the Organizer Crashes view.Top left has a warning sign, clicking on that displays a message:"Unable to download crash information.""An error occurred preventing Xcode from downloading updated crash information. An unexpected error occurred communicating with Apple. Please try again later."I check every day, mostly it doesn't work, then suddenly it works for a couple of days, especially if I check late in the evening Swedish time.I'm quite sure this isn't related to any problem at my end. This problem has existed for years.Summary: Sometimes it works, mostly not.Is there anything I can do to make it work?
4
0
5.3k
Nov ’18
Auto-Renew Membership
I have ticked the "Auto-Renew Membership" check box but every time I log in to iTunes Connect, I'm greated with:Renew Your Apple Developer Program MembershipIf you do not renew your membership before Sep 28, 2016, your apps will no longer be available on the App Store.Previously I paid every year but this time I selected "Auto-Renew Membership".Should I be worried about the message?Thanks
10
0
7.9k
Sep ’16