Is it possible to access the players music library? I would like the player to be able to use their own music in this game I am creating, so I wondered if it was possible in gideros?
I have some similar questions but not the same. If I use iPad music player and start a song before running my game 1. Should that song continue playing in my game? 2. Could I detect music player is playing. 3, If "yes", could I stop/resume it in my game (by invoking a procedure for example)
OpenAL doesn't infer with iOS music player. On the other hand, .wav files are played with OpenAL and .mp3 files are played with AVAudioPlayer. Therefore, there is possibility that playing an mp3 file can infer the already playing music.
Currently I don't know the answer to the 1st question. But I can say no to 2nd and 3rd ones.
I am also interested in letting music already playing override the game music. Is this possible now? I note the previous post was over two years, and live in hope.
1. Detect if background music is playing when the app starts. 2. If it isn't, play all sounds normally. If it is, mute all sound.
The link is a step in the right direction, and could potentially be used together with a "mute" button in game. Is there a similar solution for Android?
Comments
Mike
http://www.sharksoupstudios.com
I have some similar questions but not the same. If I use iPad music player and start a song before running my game
1. Should that song continue playing in my game?
2. Could I detect music player is playing.
3, If "yes", could I stop/resume it in my game (by invoking a procedure for example)
Thanks,
is your OpenAL implementation interfering with the IOS music player when you start an app, even if you don't play music (mp3)?
OpenAL doesn't infer with iOS music player. On the other hand, .wav files are played with OpenAL and .mp3 files are played with AVAudioPlayer. Therefore, there is possibility that playing an mp3 file can infer the already playing music.
Currently I don't know the answer to the 1st question. But I can say no to 2nd and 3rd ones.
Niclas
Did you mean this :
http://members.giderosmobile.com/knowledgebase.php?action=displayarticle&id=93
1. Detect if background music is playing when the app starts.
2. If it isn't, play all sounds normally. If it is, mute all sound.
The link is a step in the right direction, and could potentially be used together with a "mute" button in game. Is there a similar solution for Android?
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];
It didn't answer your question, it just let music player to still play.