Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-09-2011, 03:53 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 7
gedalia is on a distinguished road
Unhappy iPod mini controls disabled when certain audio session parameters are set

Hello, I'm working on a music visualizer for the iphone/ipad, under iOS 3 you could double tap the home button and get iPod controls. With the latest version 4.1-4.2 these controls are now part of the task manager on the bottom. They are also grayed out when the home button is pressed. I found a similar complaint at rdar://8696944: iPod mini controls don't work in apps using AVAudioSessionCategoryAmbient sound, although there wasn't a solution.

I have the base sound category set to kAudioSessionCategory_PlayAndRecord, with kAudioSessionProperty_OverrideCategoryMixWithOther s set to true. (Just to add more fun to the problem I'm using OpenAl for some sound effects.)

I have tried setting the category back to ambient when the application goes into the background. but either it happens too late or it's not sufficient.

thanks!

ps. this is cross posted this to stack overflow iphone - iPod mini controls disabled when certain audio session parameters are set - Stack Overflow
Someone there came up with a minimal example:

AudioSessionInitialize(NULL, NULL, NULL, self);
UInt32 sessionCategory = kAudioSessionCategory_AmbientSound;
AudioSessionSetProperty(kAudioSessionProperty_Audi oCategory, sizeof(sessionCategory), &sessionCategory);

devicetwo = alcOpenDevice(NULL);
contexttwo = alcCreateContext(devicetwo, 0);

//The following two lines are the lines that gray out iPod controls:

alcMakeContextCurrent(contexttwo);
AudioSessionSetActive(YES);
gedalia is offline   Reply With Quote
Reply

Bookmarks

Tags
audio, ipad & iphone, ipod controls, open al

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 415
11 members and 404 guests
7twenty7, chemistry, ChrisYates, djohnson, gmarro, hussain1982, Retouchable, skrew88, SLIC, walex, xzoonxoom
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,128
Posts: 402,921
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:09 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0