Hello everybody,
I got some problems with mp3´s playing on the iPod and my game background musik.
I already installed the beta-fix from ReJ to keep playing iPod mp3´s when starting an Unity iPhone App.
If i start the game while playing mp3´s on the iPod the background music dosn´t play (they are in mp3 format) but the sound effects (wav).
And if i start the game without music and try to start it later InGame the mp3 i choose (the iPod one not my background music) gets interruptet immediatly if i close the sound dialog from the iPod.
Have anyone a suggestion how to fix this issue or is it Unity dependent? tried other apps and they dont show that behaviour but they arent Unity apps
you can either play your mp3 or the one from the ipod music player.
There is no way to play both as Unity uses the hardware decompression session profile and only a single track can be decompressed in hardware at a time, either yours or the music player.
Thx for the answer dreamora
so i have to convert my background musik to *.wav to get it played together with the iPod mp3s.
I think thats an no go for me because the files would get real big.
yes you would have to.
But it wouldn’t make any sense at least to me.
If I as use choose to use my music, I don’t want your bg tune to destroy my experience.
If I wanted your tune, I wouldn’t listen to my music library
Yes you are right that makes no sense.
But if i start the game without iPhone Mp3´s playing and start it in the middle of the game it ends when i close the Mp3 dialoge. I think it happens because my backround sound keeps on playing.
Is there a way to detect if the MP3 player gets start in Unity? Then I can interrupt my Backround music so it keeps on playing.
No I don’t think you can detect it.
you can only detect that the player paused and show a pause menu where they could disable the sound for example.
but I’m not sure if that will affect the situation actually
I recently had issues with playing very short mp3’s (less than 5 seconds in length)… They’d play in Unity, but not once compiled to the device…
No error codes would be thrown back, however.
I’m presently handling hundreds of lines of dialogue, and some sound files are barely two words long 
Short sound effects should be handeled as *.wav and background musik also if the size isn´t too big.
Maybe u play 2 really short mp3´s at the same time so one isnt played properly.