Don't stop ipod playing
+2
sio2interactive
konstruktor
6 posters
Don't stop ipod playing
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
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
Re: Don't stop ipod playing
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
Cheers,
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
Cheers,
Re: Don't stop ipod playing
I seem to remember this question on the oolong mailing list, if that helps.
-j
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: Don't stop ipod playing
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:
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'
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
Re: Don't stop ipod playing
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
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
Re: Don't stop ipod playing
It doesn't stop playing music for me. Try removing the line initializing openAL
oioioi- Posts : 136
Join date : 2008-12-02
Location : Norway
Re: Don't stop ipod playing
Thanks!
I will try that.
Destruktor
edit: It works! Thank you!
I will try that.
Destruktor
edit: It works! Thank you!
konstruktor- Posts : 6
Join date : 2009-03-13
Similar topics
» Playing Video
» Passing Through Static Object (Beating my iPod seems to help)
» iPhone and iPod Touch Development using Microsoft Visual C++
» How to stop Particle?
» Tutorial04 porblem
» Passing Through Static Object (Beating my iPod seems to help)
» iPhone and iPod Touch Development using Microsoft Visual C++
» How to stop Particle?
» Tutorial04 porblem
Permissions in this forum:
You cannot reply to topics in this forum