Feature request > music/sound

Don't stop the user music on devices under demmand

<< < (2/3) > >>

Slydog:
So, if a song is being played when the game starts, it will keep playing.
And no way to start playing your own custom game music in that case.
(but sound effects would still work?)

That's not a bad option, if the user wants to listen to his/her own music, just start playing it before your game starts.
Otherwise you can play your own music.

When their song ends, the music is over?
It'd be cool to auto set their repeat mode (repeatMode) (default to MPMusicRepeatModeAll?) so the music never ends.
(but is this global?  you may have to set it back when exiting)

How hard is it to allow them to choose songs from their own library while in your game!?  That would be neat.  Does Apple even expose that? 

(Same as photos too I guess.  Having custom photos in your game would add a personal touch.  (A family portrait in a hallway, billboards, etc).  (With the user's permission of course!))

[Edit]
To initialize the playback queue to contain every song in the library, use this:  (Objective C I assume?)
// assign a playback queue containing all media items on the device
[myPlayer setQueueWithQuery: [MPMediaQuery songsQuery]];

from the page:
http://www.iphonedevsdk.com/forum/iphone-sdk-development/22636-mpmediaquery-hanging.html

We could then give them next / previous buttons in our app and call 'skipToNextItem' and 'skipToPreviousItem'.
But with inline code, how do you insert Objective C? or translate it!?

Kitty Hello:
If you want that many options, try:
http://www.glbasic.com/forum/index.php?topic=4169.0

Dark Schneider:

--- Quote from: Kitty Hello on 2010-Jun-22 ---ok, I think I will make it, that if the iPod is on, the PLAYMUSIC commands will be ignored and iPod is played. Is that OK?

--- End quote ---

I think that is perfect, no need for more complex things because if users are playing a music from their library it is clear that is because they want that music and not the game one.

Note that the iPod music is stopped when there is no PLAYMUSIC in the code, so the current GLBasic music engine initialization stops the device music.

Slydog:
Wow, that's convenient!  Thanks.
Scratch that off my 'To Do' list!


--- Quote from: Kitty Hello on 2010-Jun-23 ---If you want that many options, try:
http://www.glbasic.com/forum/index.php?topic=4169.0

--- End quote ---

Wampus:

--- Quote from: Kitty Hello on 2010-Jun-22 ---ok, I think I will make it, that if the iPod is on, the PLAYMUSIC commands will be ignored and iPod is played. Is that OK?

--- End quote ---
Yes! This would be great.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version