[android-developers] Re: Interrupted audio playback.

2009-10-16 Thread Mike
Thank you very much for your advice! I have not tried to raise MediaPlayers thread priority yet, but I'll try it next. Although i must admit that i am not convinced with this solution. The game is opengl powered. Input processing, game logic and rendering are each separated in a dedicated thread

[android-developers] Re: Interrupted audio playback.

2009-10-15 Thread Marco Nelissen
That will have no effect whatsoever, since media playback already happens in a separate thread (several, actually), which is owned by the system and runs at elevated priority. The priority of the thread that calls in to MediaPlayer has no influence on this at all. On Thu, Oct 15, 2009 at 7:02 AM

[android-developers] Re: Interrupted audio playback.

2009-10-15 Thread niko20
Hi Mike It's most likely just a threading issue, the MediaPlayer thread may getting interrupted by your game thread, that's why it gaps. You would have to set the thread priority a bit h igher for the code that calls MediaPlayer (you should also try running MediaPlayer in a seperate thread first