Hello. I came across an issue that puzzles me a bit.
I seem to remember that starting the SPAudioEngine with category AmbientSound used to work, but now it doesn't, meaning that iPod music is stopped when my app starts.
So I looked into SPAudioEngine.m and found these lines:
UInt32 sessionCategory = category;
AudioSessionSetProperty(kAudioSessionProperty_AudioCategory,
sizeof(sessionCategory), &sessionCategory);
Because I couldn't figure out why a cryptic uint32 is fed in there, I changed it to:
UInt32 sessionCategory = category;
AudioSessionSetProperty(kAudioSessionProperty_AudioCategory,
sizeof(sessionCategory), &category); //<- the string value instead
Now the original enum string 'ambi' gets fed in and it now works! iPod music keeps playing and my sound also plays. 😳 Is this a bug in Sparrow? Did something change in Apple's implementation? What did I do?