Reputation:
I've followed the API Docs and WWDC Videos exactly, to play audio in the background via an Audio Session (using the AudioQueue services). It all works just fine, but there is no "Play" indicator displayed in the Status Bar.
Do i have to set this separately or is it a Bug?
Upvotes: 2
Views: 1306
Reputation: 25256
I think this was done by the Audio Session:
// before instantiating the playback audio queue object,
// set the audio session category
UInt32 sessionCategory = kAudioSessionCategory_MediaPlayback;
AudioSessionSetProperty (
kAudioSessionProperty_AudioCategory,
sizeof (sessionCategory),
&sessionCategory
);
// activate the audio session immmediately before playback starts
AudioSessionSetActive (true);
Upvotes: 1