MediaPlayer and short sound files

All your problems with Audio, Video and Images.

MediaPlayer and short sound files

Postby daliz » Sat Jul 18, 2009 10:19 am

I have two buttons. When the user clicks, a very short sound is produced.

When the user clicks for the first time, the file is entirely played and it's ok. In the next clicks, *everytime*, the file seems to be playing not from the beginning but a few milliseconds later....

It happens on the emulator and on the real phone, so I think it's a real limit of the MediaPlayer class... something related to the buffer, I suppose...

Do you know a way to solve this?

~ daliz ~ ::
w w w . g e e k d r o i d . c o m
Junior Developer
Junior Developer
Posts: 21
Joined: Tue Jul 07, 2009 11:15 pm


Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 11 guests