Don't stop ipod playing

View previous topic View next topic Go down

Don't stop ipod playing

Post  konstruktor on Sun Mar 15, 2009 11:52 am

Hi guys,
I have a little problem:
When I start my app the ipod.app stops playing music, but my app doesn't require sound-effects or music.
Cause of that I want the ipod.app keeps on playing.

But how can I disable this part of the engine?
I hope somebody can help me.

Thank you in advance!
Konstruktur

konstruktor

Posts : 6
Join date : 2009-03-13

View user profile

Back to top Go down

Re: Don't stop ipod playing

Post  sio2interactive on Sun Mar 15, 2009 4:28 pm

Really good question dude, I once ask myself the same question, dig a little and haven't found the answer... If you find it lemme know...

Me what I wannit to do is allow the user within the 3D application to select and play one of its current iPod playlist.

If someone have the answer please do share it Wink

Cheers,

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Don't stop ipod playing

Post  meteors on Sun Mar 15, 2009 5:26 pm

I seem to remember this question on the oolong mailing list, if that helps.



-j
avatar
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

View user profile

Back to top Go down

Re: Don't stop ipod playing

Post  autology on Sun Mar 15, 2009 7:33 pm

While I haven't implemented this yet (It's on the to-do list for version 2 of my app):

Here is what I've gathered:

If you are initializing openAL at all with SIO2, you won't be able to enable pass through of ipod music etc.

To do so, you'll have to find a way to modify the openAL playback state of the sound file in question. This blog post goes into some detail on the different types of audiosession categories (Link: http://benbritten.com/blog/2009/02/02/restarting-openal-after-application-interruption-on-the-iphone/)

Of particular interest is the kAudioSessionCategory_AmbientSound:

kAudioSessionCategory_AmbientSound: This one is for 'longer' sound playback, but works fine for short sounds as well. It is what i refer to as the 'game category'; good for games. good to play longer looping background sounds (like a rockin soundtrack, or atmospheric noises) as well as short effects (like gunshots or interface clicks) This category will also allow the iPod music to mix with your app sounds.

I've given up on trying to figure out openAL until after I get something out, but that's how we will have to approach this if you want to get ipod music in the background.

Good luck - post any success if you have it'

autology

Posts : 22
Join date : 2008-12-29

View user profile

Back to top Go down

Re: Don't stop ipod playing

Post  zzajin on Sun Mar 15, 2009 7:39 pm

That looks like a good discussion.

Here is some more info

http://www.sputnikgames.com/blog/?p=14

http://www.idevgames.com/forum/archive/index.php/t-16048.html

zzajin

Posts : 81
Join date : 2008-10-14

View user profile

Back to top Go down

Re: Don't stop ipod playing

Post  oioioi on Mon Mar 16, 2009 8:39 am

It doesn't stop playing music for me. Try removing the line initializing openAL

oioioi

Posts : 136
Join date : 2008-12-02
Location : Norway

View user profile

Back to top Go down

Re: Don't stop ipod playing

Post  konstruktor on Tue Mar 17, 2009 4:41 am

Thanks!
I will try that.

Destruktor


edit: It works! Thank you!

konstruktor

Posts : 6
Join date : 2009-03-13

View user profile

Back to top Go down

Re: Don't stop ipod playing

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum