views:

146

answers:

2

how can i let ipod playback continue when my app is on the run..... THANKS IN ADVANCE FOR HELP//...

+1  A: 

I'm pretty sure that it has nothing to do with your app (i.e. a special background service runs for the ipod), but i could be wrong...

RCIX
+4  A: 

At startup you need to init an AudioSession by calling

AudioSessionInitialize(NULL,NULL,NULL,NULL);

and then set your audio category to kAudioSessionCategory_AmbientSound, like so

UInt32  sessionCategory = kAudioSessionCategory_AmbientSound;
AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(sessionCategory), &sessionCategory);
AudioSessionSetActive(true);
Rhythmic Fistman
I thank you for showing concern but can you be a little more specific of what to do... i'm sort of a newbie..... i'll be thankful
valiantb
sure, I added a link to some code.
Rhythmic Fistman
looks like there's an errant space in "kAudioSessionProperty_AudioCategory" - but otherwise this worked great, even while doing remoteio and avaudioplayer at the same time.
Glenn Barnett
Fixed, happy to be of service.
Rhythmic Fistman