Animations lag when playing sound effects

Dbfunapps

New member
Nov 13, 2021
3
0
0
Visit site
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
 

Members online

Trending Posts

Forum statistics

Threads
950,608
Messages
6,948,143
Members
3,162,057
Latest member
ArtifactArticles