Hi all,
I'm developing a simple game in Java using Android studio.
Here I have some images going across the screen through simple animation (using ObjectAnimator) and I play some (very short) sound when they hit each other.
The issue is that when the sound play I see a little lag in the animations.
I tried using both MediaPlayer and SoundPool, with this second one the issue is minor but still present. I also tried to using parallel threads for the sound management, but still I can see the lag.
Does some of you encountered the same problem in the past and found a solution?
thanks
Dbfunapps
I'm developing a simple game in Java using Android studio.
Here I have some images going across the screen through simple animation (using ObjectAnimator) and I play some (very short) sound when they hit each other.
The issue is that when the sound play I see a little lag in the animations.
I tried using both MediaPlayer and SoundPool, with this second one the issue is minor but still present. I also tried to using parallel threads for the sound management, but still I can see the lag.
Does some of you encountered the same problem in the past and found a solution?
thanks
Dbfunapps