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 to see if it helps anyway)

-niko

On Oct 15, 7:52 am, Mike <[email protected]> wrote:
> Hello,
>
> the game I am working on uses SoundPool for sound effects and
> MediaPlayer for background music playback.
> Input happens enirely through the touch screen, with a 20 mS delay
> after each processed MotionEvent.
> Sometimes (very rarely) it happens that the background music gets
> interrupted for a fraction of a second during input.
> Do you have any ideas how to ensure MediaPlayer continues audio
> playback during touch screen input?
>
> All audio files are in ogg format with various sample and bit rates.
> Would it be an advantage if all audio files would share the same
> samplerate and/or bitrate?
>
> Do you have any other ideas how to improve audo playback performance?
>
> Any advice is welcome!
> Thanks in advance,
> Mike.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to