title: How to play sounds at accurate periods of time across different devices in Android
body: <p>I'm developing a game in Android and I came across a very annoying, hard-to-find bug. The issue is that when you are using <code>SoundPool</code> to play your sounds, you can actually loop whatever sound you are playing. In this case, the issue is the "running steps" sound; this sound gets executed quite fast and continually (around every <code>400ms</code>) when the main character is running. </p>
  
  <p>Now when playing the sound on a regular (not so powerful) device e.g. Samsung SII, the sound is played every <code>500ms</code> - however, if I run the very same code on another device (let's say, Samsung SIV, Samsung SIII), the sound plays twice or even three times faster.</p>
  
  <p>It seems like the more powerful the device hardware specs are, the faster it plays. On some devices, it plays so fast that you almost hear one solid continuous sound. I've been looking for techniques to set a specific ratio on the time period between sound plays, but it doesn't work properly and the issue remains. Does anyone know how to fix it, either using <code>SoundPool</code>, <code>MediaPlayer</code>, or any other sound-controlling API on Android?</p>