title: How to determine best audio sample rate on Android device?
body: <p>Running <code>Android 5.1</code> on my <code>Nexus 5</code> I'm experiencing laggy audio due to <a href="https://stackoverflow.com/questions/18794965/android-audio-programming-nightmare-soundpool-audiotrack-arrghh">this</a> problem. The problem is that my 44.1 KHz <code>OGG</code> files are resampled (up to 48 KHz?) on playback using the <a href="http://developer.android.com/reference/android/media/SoundPool.html" rel="nofollow noreferrer">SoundPool</a> class, causing the lag.</p>
  
  <p>Now, I suppose different devices are optimized for different sample rate. How can I make sure that my audio performs well on all devices? Is it possible to detect the optimal sample rate and then choose the best file from multiple audio resources?</p>