tags:

views:

60

answers:

0

I'm using an audio engine I'm not too familiar with. It's an engine that came from an Apple example project (SoundEngine.cpp). It uses OpenAL to play sound effects and music, and nowhere do I see it initializing an audio session with AVAudioSessionCategorySoloAmbient or kAudioSessionCategory_SoloAmbientSound or any other categories.

What I want to do is allow the user's music to continue to play in the background, but I don't see anywhere where I can insert the line to set the category.

Essentially, the initialization code is:

mDevice = alcOpenDevice(NULL);
mContext = alcCreateContext(mDevice, NULL);
alcMakeContextCurrent(mContext);

and the third line is where the user's music fades out. There's nowhere that it even references audio sessions in the entire file. Any ideas?