FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Don't stop ipod playing

+2
sio2interactive
konstruktor
6 posters

Go down

Don't stop ipod playing Empty Don't stop ipod playing

Post  konstruktor 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

Back to top Go down

Don't stop ipod playing Empty Re: Don't stop ipod playing

Post  sio2interactive 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,
sio2interactive
sio2interactive

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

http://sio2interactive.com

Back to top Go down

Don't stop ipod playing Empty Re: Don't stop ipod playing

Post  meteors Sun Mar 15, 2009 5:26 pm

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



-j
meteors
meteors

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

Back to top Go down

Don't stop ipod playing Empty Re: Don't stop ipod playing

Post  autology 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

Back to top Go down

Don't stop ipod playing Empty Re: Don't stop ipod playing

Post  zzajin Sun Mar 15, 2009 7:39 pm


zzajin

Posts : 81
Join date : 2008-10-14

Back to top Go down

Don't stop ipod playing Empty Re: Don't stop ipod playing

Post  oioioi 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

Back to top Go down

Don't stop ipod playing Empty Re: Don't stop ipod playing

Post  konstruktor 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

Back to top Go down

Don't stop ipod playing Empty Re: Don't stop ipod playing

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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