Android repeatedly plays mp3 file without spaces

I want to play mp3 file from SD card many times without spaces. I am using the MediaPlayer.setlooping(true) method to replay mp3 . It works great. But this gives a few seconds between repetitions. I am also looking for SoundPools, but this also gives some space. So there is a class, method, or some idea that will help me bridge the gap in a few seconds.

+6
source share
2 answers

After some convenient experiments, finally I got my solution using

mPlayer.setLooping(true);

mPlayer is an instance of the MediaPlayer class. Although this line of code encodes the code, it has several gaps between consecutive sounds. However, finally it works for me. Anyone can try the MediaPlayer class. its really awesome for processing an audio file.

+2
source

I think this is not possible, but you can try to implement attenuation and attenuation methods. Check out this link:

How to create fade-in / fade-out sound effects for any music file that my application plays?

EDIT: Or try this, I think this should work: fooobar.com/questions/219581 / ...

0
source

All Articles